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 function f() { | 6 function f() { |
8 for (var i = 10; i < 14; i++) { // 1 | 7 for (var i = 10; i < 14; i++) { // 1 |
9 i; // 2 | 8 i; // 2 |
10 } | 9 } |
11 } // 3 | 10 } // 3 |
12 | 11 |
13 var state = "conditional"; | 12 var state = "conditional"; |
14 var log = []; | 13 var log = []; |
15 var exception = null; | 14 var exception = null; |
(...skipping 16 matching lines...) Expand all Loading... |
32 Debug.setListener(listener); | 31 Debug.setListener(listener); |
33 | 32 |
34 Debug.setBreakPoint(f, 2, 0, "i == 12"); | 33 Debug.setBreakPoint(f, 2, 0, "i == 12"); |
35 | 34 |
36 f(); | 35 f(); |
37 | 36 |
38 Debug.setListener(null); // 4 | 37 Debug.setListener(null); // 4 |
39 | 38 |
40 assertEquals([2,12,1,1,2,13,1,1,3,4], log); | 39 assertEquals([2,12,1,1,2,13,1,1,3,4], log); |
41 assertNull(exception); | 40 assertNull(exception); |
OLD | NEW |