identifier-let-allowed-as-lefthandside-expression-not-strict.js (473B)
1 // Copyright (C) 2011 the V8 project authors. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 /*--- 4 description: > 5 identifier "let" allowed as lefthandside expression 6 esid: sec-iteration-statements 7 info: | 8 for ( [ lookahead ∉ { let [ } ] LeftHandSideExpression [?Yield, ?Await] in 9 Expression[+In, ?Yield, ? Await]) Statement[?Yield, ?Await, ?Return] 10 flags: [noStrict] 11 ---*/ 12 for (let in {}) { } 13 14 reportCompare(0, 0);