@@toStringTag spoofing for null and undefined
allen at wirfs-brock.com
Wed Jan 21 17:43:37 PST 2015
On Jan 21, 2015, at 11:03 AM, Brendan Eich wrote:
> Allen Wirfs-Brock wrote:
>> I agree, that the anti-spoofing is the most questionable part of the design and I would be fine with loosing it. But is it really questionable enough that we can't live with what is specified. What is the fatal flaw. What does it actually harm?
> This is not the question to ask, since there won't be obvious fatal flaws in lots of things we still need to agree upon, yet the cumulative complexity will hide flaws. We need to reduce complexity to reduce risk of something bad (however non-fatal). Many small wounds add up. I know this too well from JS, which barely survived its early trials.
> Let's lose what we can, to avoid letting loose the complexity/risk-hounds ;-). How would you cut anti-spoofing?
By simply deleting step 17 of http://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss