On 7/17/2013 3:58 PM, Claude Pache wrote:
Le 17 juil. 2013 à 18:43, Andreas Rossberg <rossb...@google.com> a écrit :
If users ignore them anyway, why would they care?
If symbols are primitives with wrapper, they *must* care: They must know that
`new Symbol` does not produce a new symbol, but some useless object.
And this is how it currently works in the V8 implementation. The first
thing I did testing it looked like:
var s = new Symbol();
var x = {};
x[s] = 'test';
I was surprised to find that this threw an error instead of doing the
(to me) obvious thing.
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss