test/nashorn/script/basic/es6/let-const-switch.js.EXPECTED
author erikj
Tue, 12 Sep 2017 19:03:56 +0200
changeset 47217 72e3ae9a25eb
parent 47216 71c04702a3d5
permissions -rw-r--r--
8187444: Forest Consolidation: Make build work Reviewed-by: darcy, ihse Contributed-by: erik.joelsson@oracle.com, maurizio.cimadamore@oracle.com, sundararajan.athijegannathan@oracle.com, jonathan.gibbons@oracle.com
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
47217
72e3ae9a25eb 8187444: Forest Consolidation: Make build work
erikj
parents: 47216
diff changeset
     7
SyntaxError: test/nashorn/script/basic/es6/let-const-switch.js#34:8<eval>:1:21 Unsupported let declaration in unprotected switch statement
39662
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
                     ^
47217
72e3ae9a25eb 8187444: Forest Consolidation: Make build work
erikj
parents: 47216
diff changeset
    10
SyntaxError: test/nashorn/script/basic/es6/let-const-switch.js#34:8<eval>:1:21 Unsupported const declaration in unprotected switch statement
39662
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
                     ^