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

> They appear to use infrastructure similar to ES5's [[Class]], which was replaced with toStringTag in ES2015.

To my best judgement, this infrastructure in WebKit is quite error-prone since it requires new interfaces to opt-out of `[[Class]]` rather than a handful of pre-ES6 era objects opting-in. It also blocks making `Object.prototype.toString` spec-perfect with Proxies in a clean way.

My attempt to fix these issues (http://webkit.org/b/199138) implements this PR. I am very optimistic on getting its `Symbol.toStringTag` part landed as soon as we have the spec and WPT.

-- 
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-617696014

Received on Wednesday, 22 April 2020 10:35:47 UTC