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

SubmittedTitle on HNPointsComments
May 12, 2019A horrifying globalThis polyfill in JavaScript by fagnerbrack15473

More from Mathias Bynens

All 6 posts →

Related posts from the same era