| OLD | NEW |
| 1 // Copyright 2017 the V8 project authors. All rights reserved. | 1 // Copyright 2017 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 print('Checks stepping with blackboxed frames on stack'); | 5 print('Checks stepping with blackboxed frames on stack'); |
| 6 | 6 |
| 7 InspectorTest.addScript( | 7 InspectorTest.addScript( |
| 8 ` | 8 ` |
| 9 function frameworkCall(funcs) { | 9 function frameworkCall(funcs) { |
| 10 for (var f of funcs) f(); | 10 for (var f of funcs) f(); |
| 11 } | 11 } |
| 12 | 12 |
| 13 function frameworkBreakAndCall(funcs) { | 13 function frameworkBreakAndCall(funcs) { |
| 14 debugger; | 14 breakProgram('', ''); |
| 15 for (var f of funcs) f(); | 15 for (var f of funcs) f(); |
| 16 } | 16 } |
| 17 //# sourceURL=framework.js`, | 17 //# sourceURL=framework.js`, |
| 18 8, 4); | 18 8, 4); |
| 19 | 19 |
| 20 InspectorTest.addScript( | 20 InspectorTest.addScript( |
| 21 ` | 21 ` |
| 22 function userFoo() { | 22 function userFoo() { |
| 23 return 1; | 23 return 1; |
| 24 } | 24 } |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 InspectorTest.logCallFrames(message.params.callFrames); | 104 InspectorTest.logCallFrames(message.params.callFrames); |
| 105 InspectorTest.log(''); | 105 InspectorTest.log(''); |
| 106 action = actions.shift() || 'resume'; | 106 action = actions.shift() || 'resume'; |
| 107 } | 107 } |
| 108 if (action) InspectorTest.log(`Executing ${action}...`); | 108 if (action) InspectorTest.log(`Executing ${action}...`); |
| 109 Protocol.Debugger[action](); | 109 Protocol.Debugger[action](); |
| 110 }); | 110 }); |
| 111 return Protocol.Runtime.evaluate( | 111 return Protocol.Runtime.evaluate( |
| 112 {expression: entryExpression + '//# sourceURL=expr.js'}); | 112 {expression: entryExpression + '//# sourceURL=expr.js'}); |
| 113 } | 113 } |
| OLD | NEW |