diff options
Diffstat (limited to 'test/common/index.js')
-rw-r--r-- | test/common/index.js | 3 |
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 |