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
This should trigger an early error from this grammar production
for ( [lookahead ≠ let ] LeftHandSideExpression[?Yield] of AssignmentExpression[In, ?Yield] )
DanielRosenwasser
changed the title
'let' should not be allowed to be bound as a variable in a for loop or let/const decl
'let' should not be allowed to be bound as a variable in a for-of loop or let/const decl
Jul 9, 2015
The following examples should trigger an early error in JS:
Note: a similar test exists in
tests/cases/conformance/es6/for-ofStatements/for-of56.ts
) for the following 3 examplesI'm not sure if the following should trigger an error:
The text was updated successfully, but these errors were encountered: