| 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: --expose-debug-as debug --harmony | 5 // Flags: --expose-debug-as debug --harmony |
| 6 | 6 |
| 7 Debug = debug.Debug; | 7 Debug = debug.Debug; |
| 8 var break_count = 0 | 8 var break_count = 0 |
| 9 var exception = null; | 9 var exception = null; |
| 10 var log = [] | 10 var log = [] |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 "f12","f7","F4","f7","F4","f7","F4","f7", | 99 "f12","f7","F4","f7","F4","f7","F4","f7", |
| 100 // For-in-let: get enumerable, next, body, next, ... | 100 // For-in-let: get enumerable, next, body, next, ... |
| 101 "g16","g11","G4","g11","G4","g11","G4","g11", | 101 "g16","g11","G4","g11","G4","g11","G4","g11", |
| 102 // For-of-var: next(), body, next(), body, ... | 102 // For-of-var: next(), body, next(), body, ... |
| 103 "h16","H4","h16","H4","h16","H4","h16", | 103 "h16","H4","h16","H4","h16","H4","h16", |
| 104 // For-of: next(), body, next(), body, ... | 104 // For-of: next(), body, next(), body, ... |
| 105 "i12","I4","i12","I4","i12","I4","i12", | 105 "i12","I4","i12","I4","i12","I4","i12", |
| 106 // For-of-let: next(), body, next(), ... | 106 // For-of-let: next(), body, next(), ... |
| 107 "j16","J4","j16","J4","j16","J4","j16", | 107 "j16","J4","j16","J4","j16","J4","j16", |
| 108 // For-var: var decl, condition, body, next, condition, body, ... | 108 // For-var: var decl, condition, body, next, condition, body, ... |
| 109 "k7","k20","K4","k23","k20","K4","k23","k20","K4","k23","k20", | 109 "k7","k20","K4","k26","k20","K4","k26","k20","K4","k26","k20", |
| 110 // For: init, condition, body, next, condition, body, ... | 110 // For: init, condition, body, next, condition, body, ... |
| 111 "l7","l16","L4","l19","l16","L4","l19","l16","L4","l19","l16", | 111 "l7","l16","L4","l22","l16","L4","l22","l16","L4","l22","l16", |
| 112 // For-let: init, condition, body, next, condition, body, ... | 112 // For-let: init, condition, body, next, condition, body, ... |
| 113 "m7","m20","M4","m23","m20","M4","m23","m20","M4","m23","m20", | 113 "m7","m20","M4","m26","m20","M4","m26","m20","M4","m26","m20", |
| 114 // Exit. | 114 // Exit. |
| 115 "y0","z0", | 115 "y0","z0", |
| 116 ] | 116 ] |
| 117 print("expected:\n"+ JSON.stringify(expected)); | 117 print("expected:\n"+ JSON.stringify(expected)); |
| 118 | 118 |
| 119 assertArrayEquals(expected, log); | 119 assertArrayEquals(expected, log); |
| 120 assertEquals(54, s); | 120 assertEquals(54, s); |
| 121 assertNull(exception); | 121 assertNull(exception); |
| OLD | NEW |