nashorn/test/script/basic/es6/let-const-switch.js.EXPECTED
author hannesw
Thu, 27 Nov 2014 16:42:53 +0100
changeset 27817 56f6161c3e55
child 39662 e2b36a3779b9
permissions -rw-r--r--
8057980: let & const: remaining issues with lexical scoping Reviewed-by: lagergren, attila
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
27817
56f6161c3e55 8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff changeset
     1
1
56f6161c3e55 8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff changeset
     2
2
56f6161c3e55 8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff changeset
     3
0
56f6161c3e55 8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff changeset
     4
1
56f6161c3e55 8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff changeset
     5
2
56f6161c3e55 8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff changeset
     6
0
56f6161c3e55 8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff changeset
     7
SyntaxError: test/script/basic/es6/let-const-switch.js#34:8<eval>:1:25 Unsupported let declaration in unprotected switch statement
56f6161c3e55 8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff changeset
     8
switch (x) { case 0: let x = 1; }
56f6161c3e55 8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff changeset
     9
                         ^
56f6161c3e55 8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff changeset
    10
SyntaxError: test/script/basic/es6/let-const-switch.js#34:8<eval>:1:27 Unsupported const declaration in unprotected switch statement
56f6161c3e55 8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff changeset
    11
switch (x) { case 0: const x = 1; }
56f6161c3e55 8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff changeset
    12
                           ^