tests/auto/qml/ecmascripttests/test262/test/language/statements/let/syntax/attempt-to-redeclare-let-binding-with-var.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: B.3.3 |
| 5 | description: > |
| 6 | redeclaration within block: |
| 7 | attempt to redeclare let binding with var |
| 8 | negative: |
| 9 | phase: parse |
| 10 | type: SyntaxError |
| 11 | ---*/ |
| 12 | |
| 13 | throw "Test262: This statement should not be evaluated."; |
| 14 | { let f; var f; } |
| 15 |