72c4ec5462
Co-authored-by: Maurizio Cimadamore <maurizio.cimadamore@oracle.com> Co-authored-by: Sundararajan Athijegannathan <sundararajan.athijegannathan@oracle.com> Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com> Reviewed-by: darcy, ihse
13 lines
420 B
Plaintext
13 lines
420 B
Plaintext
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; }
|
|
^
|