| 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 // Flags: --expose-wasm --expose-debug-as debug --validate-asm | 5 // Flags: --expose-wasm --validate-asm |
| 6 | 6 |
| 7 Debug = debug.Debug | 7 Debug = debug.Debug |
| 8 | 8 |
| 9 // Initialized in setup(). | 9 // Initialized in setup(). |
| 10 var exception; | 10 var exception; |
| 11 var break_count; | 11 var break_count; |
| 12 var num_wasm_scripts; | 12 var num_wasm_scripts; |
| 13 var module; | 13 var module; |
| 14 | 14 |
| 15 var filename = '(?:[^ ]+/)?test/mjsunit/wasm/asm-debug.js'; | 15 var filename = '(?:[^ ]+/)?test/mjsunit/wasm/asm-debug.js'; |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 ['callDebugger', 57, 5], // -- | 80 ['callDebugger', 57, 5], // -- |
| 81 ['redirectFun', 60, 5], // -- | 81 ['redirectFun', 60, 5], // -- |
| 82 ['FrameInspection', 86, 3], // -- | 82 ['FrameInspection', 86, 3], // -- |
| 83 ['', 89, 3] | 83 ['', 89, 3] |
| 84 ]; | 84 ]; |
| 85 Debug.setListener(listener); | 85 Debug.setListener(listener); |
| 86 fun(); | 86 fun(); |
| 87 Debug.setListener(null); | 87 Debug.setListener(null); |
| 88 assertEquals(1, break_count); | 88 assertEquals(1, break_count); |
| 89 })(); | 89 })(); |
| OLD | NEW |