tc39 / proposal-global

ECMAScript Proposal, specs, and reference implementation for `global`
http://tc39.github.io/proposal-global/
MIT License
349 stars 18 forks source link

Better polyfill #48

Closed lygstate closed 5 years ago

lygstate commented 5 years ago

https://github.com/ungap/global-this/blob/master/index.js

ljharb commented 5 years ago

That's an alternative, certainly (although, per its readme, it doesn't work in IE < 8, which makes it much worse to me). Either way, the polyfills in proposal repos aren't for production use - they're demonstrative, so their quality isn't that important.