Fully inspired by @mathias , the ungap/global-this polyfill for all engines and modules just landed
https://github.com/ungap/global-this#globalthis …
-
-
Very well then, that's it
<script>this.globalThis||(this.globalThis=this);</script> -
the point is to have a single polyfill/shim (just js, no html) that works regardless of environment - thanks for updating your readme to indicate yours’ caveats.
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.

<!--[if IE 8]><script>this.globalThis=this</script><![endif]-->