test/nashorn/script/basic/es6/let-const-switch.js.EXPECTED
author phh
Sat, 30 Nov 2019 14:33:05 -0800
changeset 59330 5b96c12f909d
parent 47217 72e3ae9a25eb
permissions -rw-r--r--
8234541: C1 emits an empty message when it inlines successfully Summary: Use "inline" as the message when successfull Reviewed-by: thartmann, mdoerr Contributed-by: navy.xliu@gmail.com

1
2
0
1
2
0
SyntaxError: test/nashorn/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/nashorn/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; }
                     ^