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 …
that’s what I mean by “wrapped” — it’s wrapped in a function that exposes global etc. and then run in the global scope. Or do you mean that even the wrapped version is then function-scoped again?
-
-
The docs linked are only for CJS, but context makes me need to know what kind of source text you are asking about (CJS, Module, Script)
-
Wrapper is also incorrect kind of. A V8 API is used that is closer to a with() when possible ( whew boy )
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