test/script/basic/es6/let-const-switch.js.EXPECTED

Thu, 05 Feb 2015 14:47:28 +0100

author
hannesw
date
Thu, 05 Feb 2015 14:47:28 +0100
changeset 1229
f8da39d33117
parent 1109
f39081a16f71
permissions
-rw-r--r--

8068872: Nashorn JSON.parse drops numeric keys
Reviewed-by: attila, lagergren

     1 1
     2 2
     3 0
     4 1
     5 2
     6 0
     7 SyntaxError: test/script/basic/es6/let-const-switch.js#34:8<eval>:1:25 Unsupported let declaration in unprotected switch statement
     8 switch (x) { case 0: let x = 1; }
     9                          ^
    10 SyntaxError: test/script/basic/es6/let-const-switch.js#34:8<eval>:1:27 Unsupported const declaration in unprotected switch statement
    11 switch (x) { case 0: const x = 1; }
    12                            ^

mercurial