| 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 print('Checks async instrumentation enabled in the middle.'); | 5 InspectorTest.log('Checks async instrumentation enabled in the middle.'); |
| 6 | 6 |
| 7 InspectorTest.addScript(` | 7 InspectorTest.addScript(` |
| 8 function foo() { | 8 function foo() { |
| 9 // asyncTaskStarted | 9 // asyncTaskStarted |
| 10 debugger; | 10 debugger; |
| 11 // asyncTaskFinished | 11 // asyncTaskFinished |
| 12 debugger; | 12 debugger; |
| 13 } | 13 } |
| 14 | 14 |
| 15 function test() { | 15 function test() { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 }, | 59 }, |
| 60 | 60 |
| 61 function afterAsyncTaskStarted(next) { | 61 function afterAsyncTaskStarted(next) { |
| 62 enableOnPause = 3; | 62 enableOnPause = 3; |
| 63 Protocol.Runtime.evaluate({ expression: 'test()//# sourceURL=expr1.js', | 63 Protocol.Runtime.evaluate({ expression: 'test()//# sourceURL=expr1.js', |
| 64 awaitPromise: true }) | 64 awaitPromise: true }) |
| 65 .then(() => Protocol.Debugger.setAsyncCallStackDepth({ maxDepth: 0 })) | 65 .then(() => Protocol.Debugger.setAsyncCallStackDepth({ maxDepth: 0 })) |
| 66 .then(next); | 66 .then(next); |
| 67 } | 67 } |
| 68 ]); | 68 ]); |
| OLD | NEW |