Re: [heycam/webidl] Only install @@toStringTag on the prototype (#357)

Haha. I have explicitly been avoiding poking the whole `@@toStringTag` rabbit hole. (From my POV this should have never been added to ES, but what can you do).

Anyway I think it's pretty clear that putting `toStringTag` on all objects is probably infeasible, without some major refactoring to get some kind of lazy invisible getter. We sort of have this in SpiderMonkey, but it's a terrible footgun and I am opposed to adding more uses.
Honestly it doesn't seem like anyone needs this feature, so maybe we could just change EcmaScript to actually allow host-defined Object.prototype.toString results in the absence of `@@toStringTag`.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/pull/357#issuecomment-601428971

Received on Thursday, 19 March 2020 21:38:08 UTC