author | hannesw |
Thu, 27 Nov 2014 16:42:53 +0100 | |
changeset 27817 | 56f6161c3e55 |
permissions | -rw-r--r-- |
27817
56f6161c3e55
8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff
changeset
|
1 |
SyntaxError: test/script/basic/es6/let-const-statement-context.js#34:8<eval>:1:10 Expected statement but found let declaration |
56f6161c3e55
8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff
changeset
|
2 |
if (true) let x = 1; |
56f6161c3e55
8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff
changeset
|
3 |
^ |
56f6161c3e55
8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff
changeset
|
4 |
SyntaxError: test/script/basic/es6/let-const-statement-context.js#34:8<eval>:1:10 Expected statement but found const declaration |
56f6161c3e55
8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff
changeset
|
5 |
if (true) const x = 1; |
56f6161c3e55
8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff
changeset
|
6 |
^ |
56f6161c3e55
8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff
changeset
|
7 |
SyntaxError: test/script/basic/es6/let-const-statement-context.js#34:8<eval>:1:13 Expected statement but found let declaration |
56f6161c3e55
8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff
changeset
|
8 |
while (true) let x = 1; |
56f6161c3e55
8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff
changeset
|
9 |
^ |
56f6161c3e55
8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff
changeset
|
10 |
SyntaxError: test/script/basic/es6/let-const-statement-context.js#34:8<eval>:1:13 Expected statement but found const declaration |
56f6161c3e55
8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff
changeset
|
11 |
while (true) const x = 1; |
56f6161c3e55
8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff
changeset
|
12 |
^ |
56f6161c3e55
8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff
changeset
|
13 |
SyntaxError: test/script/basic/es6/let-const-statement-context.js#34:8<eval>:1:9 Expected statement but found let declaration |
56f6161c3e55
8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff
changeset
|
14 |
for (;;) let x = 1; |
56f6161c3e55
8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff
changeset
|
15 |
^ |
56f6161c3e55
8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff
changeset
|
16 |
SyntaxError: test/script/basic/es6/let-const-statement-context.js#34:8<eval>:1:9 Expected statement but found const declaration |
56f6161c3e55
8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff
changeset
|
17 |
for (;;) const x = 1; |
56f6161c3e55
8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff
changeset
|
18 |
^ |
56f6161c3e55
8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff
changeset
|
19 |
SyntaxError: test/script/basic/es6/let-const-statement-context.js#34:8<eval>:1:3 Expected statement but found let declaration |
56f6161c3e55
8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff
changeset
|
20 |
do let x = 1; while (true); |
56f6161c3e55
8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff
changeset
|
21 |
^ |
56f6161c3e55
8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff
changeset
|
22 |
SyntaxError: test/script/basic/es6/let-const-statement-context.js#34:8<eval>:1:3 Expected statement but found const declaration |
56f6161c3e55
8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff
changeset
|
23 |
do const x = 1; while (true); |
56f6161c3e55
8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff
changeset
|
24 |
^ |
56f6161c3e55
8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff
changeset
|
25 |
SyntaxError: test/script/basic/es6/let-const-statement-context.js#34:8<eval>:1:9 Expected statement but found const declaration |
56f6161c3e55
8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff
changeset
|
26 |
with (y) const x = 1; |
56f6161c3e55
8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff
changeset
|
27 |
^ |
56f6161c3e55
8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff
changeset
|
28 |
SyntaxError: test/script/basic/es6/let-const-statement-context.js#34:8<eval>:1:9 Expected statement but found let declaration |
56f6161c3e55
8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff
changeset
|
29 |
with (y) let x = 1; |
56f6161c3e55
8057980: let & const: remaining issues with lexical scoping
hannesw
parents:
diff
changeset
|
30 |
^ |