From da8641f3b46f41be11ba932f4228a36bfee9fd1c Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Tue, 21 Aug 2018 08:54:02 +0200 Subject: 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 Reviewed-By: Anna Henningsen Reviewed-By: Ruben Bridgewater Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Trivikram Kamat --- test/common/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/common/index.js') 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 -- cgit v1.2.3