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 // Do not edit this file with an editor that replaces \r with \r\n. | 6 // Do not edit this file with an editor that replaces \r with \r\n. |
8 // Variable definitions for i0 through i3 are each terminated with \r. | 7 // Variable definitions for i0 through i3 are each terminated with \r. |
9 function f() { | 8 function f() { |
10 var i0 = 0; | 9 var i0 = 0; |
11 var i1 = 1; | 10 var i1 = 1; |
12 var i2 = 2; | 11 var i2 = 2; |
13 var i3 = 3; | 12 var i3 = 3; |
14 var j0 = 0; | 13 var j0 = 0; |
15 var j1 = 1; | 14 var j1 = 1; |
(...skipping 18 matching lines...) Expand all Loading... |
34 | 33 |
35 Debug.setListener(listener); | 34 Debug.setListener(listener); |
36 | 35 |
37 Debug.setBreakPoint(f, 3, 0); | 36 Debug.setBreakPoint(f, 3, 0); |
38 | 37 |
39 f(); | 38 f(); |
40 | 39 |
41 Debug.setListener(null); | 40 Debug.setListener(null); |
42 assertTrue(break_point_hit); | 41 assertTrue(break_point_hit); |
43 assertNull(exception); | 42 assertNull(exception); |
OLD | NEW |