3 ms·
You go out and fix all the library code that uses window then. The web has been paving the cow paths for good reason. There are hills worth dying on, what the
by j-pb 6y ago
You go out and fix all the library code that uses window then.
The web has been paving the cow paths for good reason.
There are hills worth dying on, what the common namespace is called isn't one of them.
- afiori 6y agorelatively speaking the windows vs. global should be a non issue. I believe that every js runtime except for IE supports globalThis such that `globalThis.window === window` in the browser and `globalThis.global === global` in node. Deno's difference from node is the choice to implement web API instead of nodejs stdlib API https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...