OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 function f() { debugger; debugger; } |
| 6 |
| 7 const Debug = new DebugWrapper(); |
| 8 Debug.enable(); |
| 9 |
| 10 let breakEventCount = 0; |
| 11 Debug.setListener(function(event, exec_state, event_data, data) { |
| 12 if (event != DebugEvent.Break) return; |
| 13 breakEventCount++; |
| 14 }); |
| 15 |
| 16 assertEquals(0, breakEventCount); |
| 17 f(); |
| 18 f(); |
| 19 f(); |
| 20 assertEquals(6, breakEventCount); |
OLD | NEW |