All current engines I could try return Number.prototype for:

12["__proto__"]

But the new spec says this should be a TypeError.

It's more consistent with the other members of Object.prototype to do an 
implicit ToObject here, and apparently matches existing implementations.  Is it 
intentional that the spec is treating this as a TypeError?

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

Reply via email to