archives

« Bugzilla Issues Index

#2498 — Symbol.prototype.{toString,valueOf} should allow unwrapped receivers


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.


fixed in rev23 editor's draft


fixed in rev23 draft