« Bugzilla Issues Index
#2498 — Symbol.prototype.{toString,valueOf} should allow unwrapped receivers
- bug_id:
2498
- creation_ts:
2014-02-04 08:06:00 -0800
- short_desc:
Symbol.prototype.{toString,valueOf} should allow unwrapped receivers
- delta_ts:
2015-07-10 08:35:02 -0700
- product:
Draft for 6th Edition
- component:
technical issue
- version:
Rev 22: January 20, 2014 Draft
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- priority:
Normal
- bug_severity:
enhancement
- everconfirmed:
true
- reporter:
Andreas Rossberg
- assigned_to:
Allen Wirfs-Brock
- cc:
["erik.arvidsson", "sof"]
- commentid:
7180
- comment_count:
0
- who:
Andreas Rossberg
- bug_when:
2014-02-04 08:06:44 -0800
19.4.3.2/.3 specify that the methods throw when the receiver is not an object. This seems inconsistent with other methods for primitive types. For example,
Boolean.prototype.valueOf.call(true)
is legal (and returns true), while
Symbol.prototype.valueOf.call(Symbol())
would throw.
- commentid:
7258
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2014-02-12 16:15:56 -0800
fixed in rev23 editor's draft
- commentid:
7589
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2014-04-06 11:31:08 -0700
fixed in rev23 draft