Status: New
Owner: ----

New issue 3788 by [email protected]: ToPrimitive(Object(Symbol()) should produce the wrapped symbol instead of throwing.
https://code.google.com/p/v8/issues/detail?id=3788

ToPrimitive(Object(Symbol()) should produce the wrapped symbol instead of throwing.

For reference:

http://people.mozilla.org/~jorendorff/es6-draft.html#sec-toprimitive
http://people.mozilla.org/~jorendorff/es6-draft.html#sec-symbol.prototype-@@toprimitive

(Note that it does not affect ToString(), etc., which will continue to throw on a symbol or a wrapped symbol.)

Test case:

```javascript
var sym = Symbol()
var obj = {}
obj[Object(sym)] = 42 // should not throw
obj[sym] === 42 // should be `true`
```



--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to