tests/auto/qml/ecmascripttests/test262/test/language/statements/let/syntax/identifier-let-allowed-as-lefthandside-expression-strict.js
raw| 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 | es6id: 13.6.0.1 |
| 5 | description: > |
| 6 | for declaration: |
| 7 | identifier "let" disallowed as lefthandside expression in strict mode |
| 8 | flags: [onlyStrict] |
| 9 | negative: |
| 10 | phase: parse |
| 11 | type: SyntaxError |
| 12 | ---*/ |
| 13 | |
| 14 | throw "Test262: This statement should not be evaluated."; |
| 15 | var o = { a: 1 }; |
| 16 | for (let in o) { } |
| 17 |