OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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 Debug = new DebugWrapper(); | 5 Debug = new DebugWrapper(); |
6 Debug.enable(); | 6 Debug.enable(); |
7 | 7 |
8 // Simple debug event handler which performs 100 steps and then retrieves | 8 // Simple debug event handler which performs 100 steps and then retrieves |
9 // the resulting value of "i" in f(). | 9 // the resulting value of "i" in f(). |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... |
34 // Set a breakpoint on the for statement (line 1). | 34 // Set a breakpoint on the for statement (line 1). |
35 Debug.setBreakPoint(f, 1); | 35 Debug.setBreakPoint(f, 1); |
36 | 36 |
37 // Check that performing 100 steps will make i 33. | 37 // Check that performing 100 steps will make i 33. |
38 let step_count = 100; | 38 let step_count = 100; |
39 let result = -1; | 39 let result = -1; |
40 | 40 |
41 f(); | 41 f(); |
42 | 42 |
43 assertEquals(33, result); | 43 assertEquals(33, result); |
OLD | NEW |