A horrifying `globalThis` polyfill in universal JavaScript

The globalThis proposal introduces a unified mechanism to access the so-called “global object” a.k.a. “the global” in any JavaScript environment. It sounds like a simple thing to polyfill, but it turns out it’s pretty hard to get right.


This content originally appeared on Mathias Bynens and was authored by Mathias

The globalThis proposal introduces a unified mechanism to access the so-called “global object” a.k.a. “the global” in any JavaScript environment. It sounds like a simple thing to polyfill, but it turns out it’s pretty hard to get right.


This content originally appeared on Mathias Bynens and was authored by Mathias


Print Share Comment Cite Upload Translate Updates
APA

Mathias | Sciencx (2019-04-15T14:40:02+00:00) A horrifying `globalThis` polyfill in universal JavaScript. Retrieved from https://www.scien.cx/2019/04/15/a-horrifying-globalthis-polyfill-in-universal-javascript/

MLA
" » A horrifying `globalThis` polyfill in universal JavaScript." Mathias | Sciencx - Monday April 15, 2019, https://www.scien.cx/2019/04/15/a-horrifying-globalthis-polyfill-in-universal-javascript/
HARVARD
Mathias | Sciencx Monday April 15, 2019 » A horrifying `globalThis` polyfill in universal JavaScript., viewed ,<https://www.scien.cx/2019/04/15/a-horrifying-globalthis-polyfill-in-universal-javascript/>
VANCOUVER
Mathias | Sciencx - » A horrifying `globalThis` polyfill in universal JavaScript. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2019/04/15/a-horrifying-globalthis-polyfill-in-universal-javascript/
CHICAGO
" » A horrifying `globalThis` polyfill in universal JavaScript." Mathias | Sciencx - Accessed . https://www.scien.cx/2019/04/15/a-horrifying-globalthis-polyfill-in-universal-javascript/
IEEE
" » A horrifying `globalThis` polyfill in universal JavaScript." Mathias | Sciencx [Online]. Available: https://www.scien.cx/2019/04/15/a-horrifying-globalthis-polyfill-in-universal-javascript/. [Accessed: ]
rf:citation
» A horrifying `globalThis` polyfill in universal JavaScript | Mathias | Sciencx | https://www.scien.cx/2019/04/15/a-horrifying-globalthis-polyfill-in-universal-javascript/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.