Re: [heycam/webidl] ES bindings for constants on Globals (#528)

There's a reason globals are special-cased in terms of property location.  It's because putting things on the prototype object breaks horribly when people try to polyfill and the var shadows the actual property.  That's why methods and attributes are special-cased in terms of location.

Maybe this is not a problem for constants, but it's hard to tell without actual use cases when people try to make their code work both in browsers with and without the constants.


-- 
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/issues/528#issuecomment-368984739

Received on Tuesday, 27 February 2018 18:50:13 UTC