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
{{ message }}
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.
The main reasoning is that this is very confusing in the context of JavaScript due to it being a horrible mess that was originally created by a single developer for Netscape Navigator.
global is not web-compatible, in Scripts or Modules, because it's used as environment detection (to distinguish node and browsers). Please see the list of constraints for more information: https://github.com/tc39/proposal-global/blob/master/NAMING.md
The main reasoning is that
this
is very confusing in the context of JavaScript due to it being a horrible mess that was originally created by a single developer for Netscape Navigator.See also #31 for more reasoning.
(I really, really hate the name
globalThis
, even more than usingwindow
and I much prefer the technological purity of plainglobal
)At the very least, I would want
global
to be supported in modules by default.Because of the above, I tend to do:
Then, I just use
global
as alias ofwindow
.The text was updated successfully, but these errors were encountered: