(message)
| 14 | const setDepth = 'Debugger.setAsyncCallStackDepth'; |
| 15 | const emptyPromiseHooks = [ undefined, undefined, undefined, undefined ]; |
| 16 | function verifyAsyncHookDisabled(message) { |
| 17 | assert.strictEqual(async_hook_fields[kTotals], 0, |
| 18 | `${async_hook_fields[kTotals]} !== 0: ${message}`); |
| 19 | const promiseHooks = getPromiseHooks(); |
| 20 | assert.deepStrictEqual( |
| 21 | promiseHooks, emptyPromiseHooks, |
| 22 | `${message}: promise hooks ${inspect(promiseHooks)}` |
| 23 | ); |
| 24 | } |
| 25 | |
| 26 | function verifyAsyncHookEnabled(message) { |
| 27 | assert.strictEqual(async_hook_fields[kTotals], 4, |
no test coverage detected