1 | ;
|
2 |
|
3 | // all three var x|y|z = 4 should be errors I believe so we error on all
|
4 | // v8 --harmony allows the first but not the second and last
|
5 |
|
6 | if (true) {
|
7 | let x = 3;
|
8 | if (true) {
|
9 | var x = 4;
|
10 | }
|
11 | }
|
12 |
|
13 | let y = 3;
|
14 | if (true) {
|
15 | var y = 4;
|
16 | }
|
17 |
|
18 | (function() {
|
19 | if (true) {
|
20 | let z = 3;
|
21 | if (true) {
|
22 | var z = 4;
|
23 | }
|
24 | }
|
25 | })();
|