Files
jdk/jdk10/nashorn/test/script/basic/es6/let-const-switch.js.EXPECTED
2017-12-16 17:19:45 -08:00

13 lines
404 B
Plaintext

1
2
0
1
2
0
SyntaxError: test/script/basic/es6/let-const-switch.js#34:8<eval>:1:21 Unsupported let declaration in unprotected switch statement
switch (x) { case 0: let x = 1; }
^
SyntaxError: test/script/basic/es6/let-const-switch.js#34:8<eval>:1:21 Unsupported const declaration in unprotected switch statement
switch (x) { case 0: const x = 1; }
^