-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LexicalEnvironment and VariableEnvironment slots [ES5.1] #1056
Comments
It's a bit subtle, but VariableEnvironment is important to implement the way that |
Yes, I read this note. But I did not learn anything new for myself. Yes in ES6 appeared let and const that complicated the ECMAScript architecture. By notes of variable declarations it is visible that it is written down in LexicalEnvironment, and that in VariableEnvironment.
|
It's my personal comprehension:
When abstract operation ResolveBinding executing, running execution context' s LexicalEnvironment will become start of environment record chain composed by outerEnv field , lots of VariableEnvironment will be used during the identifiers finding process. |
Why do we need LexicalEnvironment and VariableEnvironment if we can use one slot of them. When operations with LexicalEnvironment occur, then its contents are stored in a special variable and then the content of the special variable is given to the LexicalEnvironment slot. Not once in the specification there is no interaction between LexicalEnvironment and VariableEnvironment. VariableEnvironment is used only to create bindings and more and more it is not found anywhere. Explain the meaning of these two slots if there is no interaction between them. Need clarity here!
The text was updated successfully, but these errors were encountered: