-
Notifications
You must be signed in to change notification settings - Fork 18
Use self?! #3
Comments
@annevk it doesn't work in node, and there's lots of code that detects the environment and would break if we used any of the pre-existing global names. Per https://github.com/tc39/proposal-global#naming, I'm going to do the research and bring it to the committee - if it will break code, it will be Also, |
Hmm, meh. Just make sure the host language can control it I guess since we cannot expose the real global for document environments. |
This proposal uses the same language as the rest of the spec, so it has no effect on any preexisting constraints about using the real global versus a proxy. See also this note in the readme. I'll leave this open until the naming issue is resolved, since although I'm supremely confident that using any of the existing names will break the web (sadly), I haven't yet done the research to prove it :-) |
I believe, according to spec, that scripts are loaded sloppy by default. This makes top-level |
Regarding the naming issue: I've done some research, and there's a number of places where Similarly, there's a number of places where As such, all three of |
I don't understand why it would be
global
orwindow
, when onlyself
works across documents and workers in browsers.(And ECMAScript should be updated to let HTML state what the global object actually is and what this returns, etc. I filed a bug on that a long time ago...)
The text was updated successfully, but these errors were encountered: