Mathias Bynens personal blog
A horrifying globalThis polyfill in JavaScript
The globalThis proposal introduces a unified mechanism to access the global this in any JavaScript environment. It sounds like a simple thing to polyfill, but it turns out it’s pretty hard to get right. I didn’t even think it was possible until Toon blew my mind with an unexpected, creative solution.
- Points
- 154
- HN comments
- 73
- Submissions
- 1
- Cited by
- 0 commenters
Web & FrontendSoftware Engineering2019
On Hacker News
| Submitted | Title on HN | Points | Comments |
|---|---|---|---|
| May 12, 2019 | A horrifying globalThis polyfill in JavaScript by fagnerbrack | 154 | 73 |