You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of the current approach of detecting known environment-specific references to the global this, the new technique doesn't depend on any such bindings, and is 100% universal JavaScript (although you would still need a single fallback if IE <= 10 support is a concern).
The text was updated successfully, but these errors were encountered:
I see that the full approach has a fallback for window in IE < 11. Are there any non-browser engines that fail to work in the Object.defineProperty case?
If we have to rely on both window and Object.prototype anyways, i'm not sure if this (quite clever and indeed horrifying) approach is an improvement over the current implementation.
A horrifying
globalThis
polyfill in universal JavaScript describes a technique that could be useful for this project.Instead of the current approach of detecting known environment-specific references to the global
this
, the new technique doesn't depend on any such bindings, and is 100% universal JavaScript (although you would still need a single fallback if IE <= 10 support is a concern).The text was updated successfully, but these errors were encountered: