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 was archived by the owner on Jan 25, 2022. It is now read-only.
I am curious about the design of the specification and its addition of a second lexical environment (PrivateEnvironment) throughout the specification algorithms. By writing this, it feels as if the scope (LexicalEnvironment) and privateScope (PrivateEnvironment) may possibly diverge. I am however unable to see if that’s 1) intended, potentially to support extensions of this proposal 2) possible in the proposal as it exists today.
When first reading about PrivateEnvironment, I had thought that what was going to happen in the specification would be that functions defined in classes would get an additional FunctionLexical environment; this would (I think!) allow the spec to largely operate as is, without having to parallel manipulate private scopes.
Probably missing something, but it did seem a bit odd going through this, so I thought I’d ask.