We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The constructs:
let v = v; const c = c;
should error because they are uses before definition. Indeed IE gives this error.
This also applies to:
for (let v = v; ; ) { } for (let v in v) { } for (let v of v) { }
For the latter two in particular, look at section 13.6.4.12 in the ES6 spec:
Let oldEnv be the running execution context’s LexicalEnvironment.
If TDZnames is not an empty List, then
a. Assert: TDZnames has no duplicate entries. b. Let TDZ be NewDeclarativeEnvironment(oldEnv). c. For each string name in TDZnames, do
i. Let status be TDZ.CreateMutableBinding(name, false). ii. Assert: status is never an abrupt completion.
d. Set the running execution context’s LexicalEnvironment to TDZ.
Let exprRef be the result of evaluating the production that is expr.
Set the running execution context’s LexicalEnvironment to oldEnv.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
The constructs:
should error because they are uses before definition. Indeed IE gives this error.
This also applies to:
For the latter two in particular, look at section 13.6.4.12 in the ES6 spec:
Let oldEnv be the running execution context’s LexicalEnvironment.
If TDZnames is not an empty List, then
a. Assert: TDZnames has no duplicate entries.
b. Let TDZ be NewDeclarativeEnvironment(oldEnv).
c. For each string name in TDZnames, do
d. Set the running execution context’s LexicalEnvironment to TDZ.
Let exprRef be the result of evaluating the production that is expr.
Set the running execution context’s LexicalEnvironment to oldEnv.
The text was updated successfully, but these errors were encountered: