test/nashorn/script/basic/es6/let-const-switch.js.EXPECTED
author erikj
Tue, 12 Sep 2017 19:03:39 +0200
changeset 47216 71c04702a3d5
parent 39662 nashorn/test/script/basic/es6/let-const-switch.js.EXPECTED@e2b36a3779b9
child 47217 72e3ae9a25eb
permissions -rw-r--r--
8187443: Forest Consolidation: Move files to unified layout Reviewed-by: darcy, ihse
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
39662
e2b36a3779b9 8149929: Nashorn Parser API needs to be updated for ES6
sundar
parents: 27817
diff changeset
     1
1
e2b36a3779b9 8149929: Nashorn Parser API needs to be updated for ES6
sundar
parents: 27817
diff changeset
     2
2
e2b36a3779b9 8149929: Nashorn Parser API needs to be updated for ES6
sundar
parents: 27817
diff changeset
     3
0
e2b36a3779b9 8149929: Nashorn Parser API needs to be updated for ES6
sundar
parents: 27817
diff changeset
     4
1
e2b36a3779b9 8149929: Nashorn Parser API needs to be updated for ES6
sundar
parents: 27817
diff changeset
     5
2
e2b36a3779b9 8149929: Nashorn Parser API needs to be updated for ES6
sundar
parents: 27817
diff changeset
     6
0
e2b36a3779b9 8149929: Nashorn Parser API needs to be updated for ES6
sundar
parents: 27817
diff changeset
     7
SyntaxError: test/script/basic/es6/let-const-switch.js#34:8<eval>:1:21 Unsupported let declaration in unprotected switch statement
e2b36a3779b9 8149929: Nashorn Parser API needs to be updated for ES6
sundar
parents: 27817
diff changeset
     8
switch (x) { case 0: let x = 1; }
e2b36a3779b9 8149929: Nashorn Parser API needs to be updated for ES6
sundar
parents: 27817
diff changeset
     9
                     ^
e2b36a3779b9 8149929: Nashorn Parser API needs to be updated for ES6
sundar
parents: 27817
diff changeset
    10
SyntaxError: test/script/basic/es6/let-const-switch.js#34:8<eval>:1:21 Unsupported const declaration in unprotected switch statement
e2b36a3779b9 8149929: Nashorn Parser API needs to be updated for ES6
sundar
parents: 27817
diff changeset
    11
switch (x) { case 0: const x = 1; }
e2b36a3779b9 8149929: Nashorn Parser API needs to be updated for ES6
sundar
parents: 27817
diff changeset
    12
                     ^