summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/sequential/test-inspector-async-call-stack.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/sequential/test-inspector-async-call-stack.js b/test/sequential/test-inspector-async-call-stack.js
index f6a48b339d..f050487da7 100644
--- a/test/sequential/test-inspector-async-call-stack.js
+++ b/test/sequential/test-inspector-async-call-stack.js
@@ -6,18 +6,20 @@ common.skipIf32Bits();
const assert = require('assert');
const { internalBinding } = require('internal/test/binding');
-const async_wrap = internalBinding('async_wrap');
-const { kTotals } = async_wrap.constants;
+const { async_hook_fields, constants } = internalBinding('async_wrap');
+const { kTotals } = constants;
const inspector = require('inspector');
const setDepth = 'Debugger.setAsyncCallStackDepth';
function verifyAsyncHookDisabled(message) {
- assert.strictEqual(async_wrap.async_hook_fields[kTotals], 0);
+ assert.strictEqual(async_hook_fields[kTotals], 0,
+ `${async_hook_fields[kTotals]} !== 0: ${message}`);
}
function verifyAsyncHookEnabled(message) {
- assert.strictEqual(async_wrap.async_hook_fields[kTotals], 4);
+ assert.strictEqual(async_hook_fields[kTotals], 4,
+ `${async_hook_fields[kTotals]} !== 4: ${message}`);
}
// By default inspector async hooks should not have been installed.