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 // | 4 // |
5 // Flags: --harmony-scoping | 5 // Flags: |
rossberg
2015/03/13 14:24:33
Dito
Dmitry Lomov (no reviews)
2015/03/13 14:51:29
Done.
| |
6 | 6 |
7 "use strict"; | 7 "use strict"; |
8 | 8 |
9 // Simplest case | 9 // Simplest case |
10 var count = 0; | 10 var count = 0; |
11 for (let x = 0; x < 10;) { | 11 for (let x = 0; x < 10;) { |
12 x++; | 12 x++; |
13 count++; | 13 count++; |
14 continue; | 14 continue; |
15 } | 15 } |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
75 count = 0; | 75 count = 0; |
76 outer: for (let x = 0; x < 10;) { | 76 outer: for (let x = 0; x < 10;) { |
77 x++; | 77 x++; |
78 for (let y = 0; y < 2;) { | 78 for (let y = 0; y < 2;) { |
79 y++; | 79 y++; |
80 count++; | 80 count++; |
81 if (y == 2) continue outer; | 81 if (y == 2) continue outer; |
82 } | 82 } |
83 } | 83 } |
84 assertEquals(20, count); | 84 assertEquals(20, count); |
OLD | NEW |