MCPcopy Index your code
hub / github.com/nodejs/node / verifyAsyncHookDisabled

Function verifyAsyncHookDisabled

test/parallel/test-inspector-async-call-stack.js:16–24  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

14const setDepth = 'Debugger.setAsyncCallStackDepth';
15const emptyPromiseHooks = [ undefined, undefined, undefined, undefined ];
16function 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
26function verifyAsyncHookEnabled(message) {
27 assert.strictEqual(async_hook_fields[kTotals], 4,

Calls 1

inspectFunction · 0.70

Tested by

no test coverage detected