2017-09-12 19:03:56 +02:00
|
|
|
SyntaxError: test/nashorn/script/basic/es6/let-const-statement-context.js#34:8<eval>:1:10 Expected statement but found let declaration
|
2014-11-27 16:42:53 +01:00
|
|
|
if (true) let x = 1;
|
|
|
|
^
|
2017-09-12 19:03:56 +02:00
|
|
|
SyntaxError: test/nashorn/script/basic/es6/let-const-statement-context.js#34:8<eval>:1:10 Expected statement but found const declaration
|
2014-11-27 16:42:53 +01:00
|
|
|
if (true) const x = 1;
|
|
|
|
^
|
2017-09-12 19:03:56 +02:00
|
|
|
SyntaxError: test/nashorn/script/basic/es6/let-const-statement-context.js#34:8<eval>:1:13 Expected statement but found let declaration
|
2014-11-27 16:42:53 +01:00
|
|
|
while (true) let x = 1;
|
|
|
|
^
|
2017-09-12 19:03:56 +02:00
|
|
|
SyntaxError: test/nashorn/script/basic/es6/let-const-statement-context.js#34:8<eval>:1:13 Expected statement but found const declaration
|
2014-11-27 16:42:53 +01:00
|
|
|
while (true) const x = 1;
|
|
|
|
^
|
2017-09-12 19:03:56 +02:00
|
|
|
SyntaxError: test/nashorn/script/basic/es6/let-const-statement-context.js#34:8<eval>:1:9 Expected statement but found let declaration
|
2014-11-27 16:42:53 +01:00
|
|
|
for (;;) let x = 1;
|
|
|
|
^
|
2017-09-12 19:03:56 +02:00
|
|
|
SyntaxError: test/nashorn/script/basic/es6/let-const-statement-context.js#34:8<eval>:1:9 Expected statement but found const declaration
|
2014-11-27 16:42:53 +01:00
|
|
|
for (;;) const x = 1;
|
|
|
|
^
|
2017-09-12 19:03:56 +02:00
|
|
|
SyntaxError: test/nashorn/script/basic/es6/let-const-statement-context.js#34:8<eval>:1:3 Expected statement but found let declaration
|
2014-11-27 16:42:53 +01:00
|
|
|
do let x = 1; while (true);
|
|
|
|
^
|
2017-09-12 19:03:56 +02:00
|
|
|
SyntaxError: test/nashorn/script/basic/es6/let-const-statement-context.js#34:8<eval>:1:3 Expected statement but found const declaration
|
2014-11-27 16:42:53 +01:00
|
|
|
do const x = 1; while (true);
|
|
|
|
^
|
2017-09-12 19:03:56 +02:00
|
|
|
SyntaxError: test/nashorn/script/basic/es6/let-const-statement-context.js#34:8<eval>:1:9 Expected statement but found const declaration
|
2014-11-27 16:42:53 +01:00
|
|
|
with (y) const x = 1;
|
|
|
|
^
|
2017-09-12 19:03:56 +02:00
|
|
|
SyntaxError: test/nashorn/script/basic/es6/let-const-statement-context.js#34:8<eval>:1:9 Expected statement but found let declaration
|
2014-11-27 16:42:53 +01:00
|
|
|
with (y) let x = 1;
|
|
|
|
^
|