Mercurial > hg > shenandoah-preopenjdk-archive > openjdk8 > nashorn
view test/script/basic/es6/let-const-switch.js.EXPECTED @ 1106:f39081a16f71
8057980: let & const: remaining issues with lexical scoping
Reviewed-by: lagergren, attila
author | hannesw |
---|---|
date | Thu, 27 Nov 2014 18:02:28 +0100 |
parents | |
children |
line wrap: on
line source
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; } ^