2016-07-12 21:18:13 +05:30
|
|
|
1
|
|
|
|
2
|
|
|
|
0
|
|
|
|
1
|
|
|
|
2
|
|
|
|
0
|
2017-09-12 19:03:56 +02:00
|
|
|
SyntaxError: test/nashorn/script/basic/es6/let-const-switch.js#34:8<eval>:1:21 Unsupported let declaration in unprotected switch statement
|
2016-07-12 21:18:13 +05:30
|
|
|
switch (x) { case 0: let x = 1; }
|
|
|
|
^
|
2017-09-12 19:03:56 +02:00
|
|
|
SyntaxError: test/nashorn/script/basic/es6/let-const-switch.js#34:8<eval>:1:21 Unsupported const declaration in unprotected switch statement
|
2016-07-12 21:18:13 +05:30
|
|
|
switch (x) { case 0: const x = 1; }
|
|
|
|
^
|