I'm still struggling with this. Does *anyone* know where, in the wild, Module Environments (a type of Lexical Environment) exist?https://twitter.com/padolsey/status/1151148086812696576 …
-
-
The other side of this is that <script type=module> var foo = 42; </script> doesn’t create http://globalThis.foo , because of the module scope. https://v8.dev/features/modules#intro …
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
But, if it was distinct, wouldn't this be valid: var one = true; const one = true; …since they're going to different places?
-
Re: the global scope vs. global obejct,
@rauschma's post really cleared that up for me - https://2ality.com/2019/07/global-scope.html …
End of conversation
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.
a classic script is wrapped and then run in the global scope