Taking bite-sized pieces:

Allen Wirfs-Brock wrote:
> > * { [ "__proto__" ]: .... } is not special in any way, and creates a normal property named "__proto__".

I don't believe this is legal. Didn't we agree w to support [ ] property keys 
that evaluate to symbols.

No, [n] is good for any computed property name -- evaluating n and if symbol, using that, else (doing the equivalent, e.g., engines optimize indexes) converting to string -- Dave's ToPropertyName from the wiki, is all that's needed here.

I do not recall us ever agreeing that the bracketed property-name-in-literal syntax was *only* for symbols.

/be



_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to