summaryrefslogtreecommitdiff
path: root/test/common/index.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/common/index.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/common/index.js')
-rw-r--r--test/common/index.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/common/index.js b/test/common/index.js
index ad2a82f3ac..c6137b20ad 100644
--- a/test/common/index.js
+++ b/test/common/index.js
@@ -79,7 +79,8 @@ if (process.env.NODE_TEST_WITH_ASYNC_HOOKS) {
const destroydIdsList = {};
const destroyListList = {};
const initHandles = {};
- const async_wrap = process.binding('async_wrap');
+ const { internalBinding } = require('internal/test/binding');
+ const async_wrap = internalBinding('async_wrap');
process.on('exit', () => {
// iterate through handles to make sure nothing crashes