tests/auto/qml/ecmascripttests/test262/test/language/statements/let/syntax/with-initialisers-in-statement-positions-if-expression-statement.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.1 |
| 5 | description: > |
| 6 | let declarations with initialisers in statement positions: |
| 7 | if ( Expression ) Statement |
| 8 | negative: |
| 9 | phase: parse |
| 10 | type: SyntaxError |
| 11 | ---*/ |
| 12 | |
| 13 | throw "Test262: This statement should not be evaluated."; |
| 14 | if (true) let x = 1; |