OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | |
5 // Flags: --harmony-scoping | |
6 | 4 |
7 "use strict"; | 5 "use strict"; |
8 | 6 |
9 // Simplest case | 7 // Simplest case |
10 var count = 0; | 8 var count = 0; |
11 for (let x = 0; x < 10;) { | 9 for (let x = 0; x < 10;) { |
12 x++; | 10 x++; |
13 count++; | 11 count++; |
14 continue; | 12 continue; |
15 } | 13 } |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 count = 0; | 73 count = 0; |
76 outer: for (let x = 0; x < 10;) { | 74 outer: for (let x = 0; x < 10;) { |
77 x++; | 75 x++; |
78 for (let y = 0; y < 2;) { | 76 for (let y = 0; y < 2;) { |
79 y++; | 77 y++; |
80 count++; | 78 count++; |
81 if (y == 2) continue outer; | 79 if (y == 2) continue outer; |
82 } | 80 } |
83 } | 81 } |
84 assertEquals(20, count); | 82 assertEquals(20, count); |
OLD | NEW |