summaryrefslogtreecommitdiff
path: root/test/sequential/test-inspector-async-call-stack.js
diff options
context:
space:
mode:
authorDaniel Bevenius <daniel.bevenius@gmail.com>2018-08-21 08:54:02 +0200
committerDaniel Bevenius <daniel.bevenius@gmail.com>2018-08-27 05:42:55 +0200
commitda8641f3b46f41be11ba932f4228a36bfee9fd1c (patch)
tree068dc79514dc187e66516863f4df65c6bbbe559c /test/sequential/test-inspector-async-call-stack.js
parent49bfc37241b0d306635c54c850f10669f07ff22c (diff)
downloadandroid-node-v8-da8641f3b46f41be11ba932f4228a36bfee9fd1c.tar.gz
android-node-v8-da8641f3b46f41be11ba932f4228a36bfee9fd1c.tar.bz2
android-node-v8-da8641f3b46f41be11ba932f4228a36bfee9fd1c.zip
src: move process.binding('async_wrap') internal
This commit makes the async_wrap builtin an internal builtin, and changes usage of the builtin from using process.binding('async_wrap') to use internalBinding instead. Refs: https://github.com/nodejs/node/issues/22160 PR-URL: https://github.com/nodejs/node/pull/22469 Refs: https://github.com/nodejs/node/issues/22160 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'test/sequential/test-inspector-async-call-stack.js')
-rw-r--r--test/sequential/test-inspector-async-call-stack.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/sequential/test-inspector-async-call-stack.js b/test/sequential/test-inspector-async-call-stack.js
index 681697b8c4..f6a48b339d 100644
--- a/test/sequential/test-inspector-async-call-stack.js
+++ b/test/sequential/test-inspector-async-call-stack.js
@@ -1,10 +1,12 @@
+// Flags: --expose-internals
'use strict';
const common = require('../common');
common.skipIfInspectorDisabled();
common.skipIf32Bits();
const assert = require('assert');
-const async_wrap = process.binding('async_wrap');
+const { internalBinding } = require('internal/test/binding');
+const async_wrap = internalBinding('async_wrap');
const { kTotals } = async_wrap.constants;
const inspector = require('inspector');