nashorn/test/script/basic/es6/let-const-switch.js.EXPECTED
author sundar
Tue, 12 Jul 2016 21:18:13 +0530
changeset 39662 e2b36a3779b9
parent 27817 56f6161c3e55
permissions -rw-r--r--
8149929: Nashorn Parser API needs to be updated for ES6 Reviewed-by: mhaupt, hannesw
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
                     ^