diff options
Diffstat (limited to 'test/script/basic/es6/let-const-switch.js.EXPECTED')
-rw-r--r-- | test/script/basic/es6/let-const-switch.js.EXPECTED | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/script/basic/es6/let-const-switch.js.EXPECTED b/test/script/basic/es6/let-const-switch.js.EXPECTED new file mode 100644 index 00000000..90309bfe --- /dev/null +++ b/test/script/basic/es6/let-const-switch.js.EXPECTED @@ -0,0 +1,12 @@ +1 +2 +0 +1 +2 +0 +SyntaxError: test/script/basic/es6/let-const-switch.js#34:8<eval>:1:25 Unsupported let declaration in unprotected switch statement +switch (x) { case 0: let x = 1; } + ^ +SyntaxError: test/script/basic/es6/let-const-switch.js#34:8<eval>:1:27 Unsupported const declaration in unprotected switch statement +switch (x) { case 0: const x = 1; } + ^ |