OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 | |
6 | 5 |
7 Debug = debug.Debug | 6 Debug = debug.Debug |
8 var exception = null; | 7 var exception = null; |
9 var break_count = 0; | 8 var break_count = 0; |
10 const expected_breaks = 9; | 9 const expected_breaks = 9; |
11 | 10 |
12 var expected_values = | 11 var expected_values = |
13 [ReferenceError, undefined, 0, 0, 0, 0, 1, | 12 [ReferenceError, undefined, 0, 0, 0, 0, 1, |
14 ReferenceError, ReferenceError]; | 13 ReferenceError, ReferenceError]; |
15 | 14 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 i++) { // Break 5. | 61 i++) { // Break 5. |
63 let key = i; // Break 3. | 62 let key = i; // Break 3. |
64 sum += key; // Break 4. | 63 sum += key; // Break 4. |
65 } | 64 } |
66 }()); // Break 7. | 65 }()); // Break 7. |
67 | 66 |
68 assertNull(exception); // Break 8. | 67 assertNull(exception); // Break 8. |
69 assertEquals(expected_breaks, break_count); | 68 assertEquals(expected_breaks, break_count); |
70 | 69 |
71 Debug.setListener(null); | 70 Debug.setListener(null); |
OLD | NEW |