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 | 5 // Flags: --expose-debug-as debug |
6 | 6 |
7 Debug = debug.Debug | 7 Debug = debug.Debug |
8 var exception = null; | 8 var exception = null; |
9 var break_count = 0; | 9 var break_count = 0; |
10 | 10 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 | 56 |
57 Debug.setListener(listener); | 57 Debug.setListener(listener); |
58 | 58 |
59 var sum = 0; | 59 var sum = 0; |
60 (function (){ | 60 (function (){ |
61 'use strict'; | 61 'use strict'; |
62 | 62 |
63 debugger; // Break 0. | 63 debugger; // Break 0. |
64 | 64 |
65 for (let i=0; // Break 1. | 65 for (let i=0; // Break 1. |
66 i < 1; // Break 2. // Break 5. // Break 6. | 66 i < 1; // Break 2. // Break 6. |
67 i++) { | 67 i++) { // Break 5. |
68 let key = i; // Break 3. | 68 let key = i; // Break 3. |
69 sum += key; // Break 4. | 69 sum += key; // Break 4. |
70 } | 70 } |
71 }()); // Break 7. | 71 }()); // Break 7. |
72 | 72 |
73 assertNull(exception); // Break 8. | 73 assertNull(exception); // Break 8. |
74 assertEquals(expected_breaks, break_count); | 74 assertEquals(expected_breaks, break_count); |
75 | 75 |
76 Debug.setListener(null); | 76 Debug.setListener(null); |
OLD | NEW |