summaryrefslogtreecommitdiff
path: root/test/common/index.js
diff options
context:
space:
mode:
authorAndreas Madsen <amwebdk@gmail.com>2017-09-26 15:50:10 +0200
committerAndreas Madsen <amwebdk@gmail.com>2017-09-26 15:50:10 +0200
commit3a69ef55e06cda552e7ad295ddf904e1c70ae13f (patch)
treea33643b534a256e0cefdb0a275b38ee5ee9defcf /test/common/index.js
parentf9e5709ea0bad223d44ade1760917764dca4c0cb (diff)
downloadandroid-node-v8-3a69ef55e06cda552e7ad295ddf904e1c70ae13f.tar.gz
android-node-v8-3a69ef55e06cda552e7ad295ddf904e1c70ae13f.tar.bz2
android-node-v8-3a69ef55e06cda552e7ad295ddf904e1c70ae13f.zip
async_hooks: consistent internal naming
PR-URL: https://github.com/nodejs/node/pull/15569 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/common/index.js')
-rw-r--r--test/common/index.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/common/index.js b/test/common/index.js
index b410ff7969..c4f899c9ec 100644
--- a/test/common/index.js
+++ b/test/common/index.js
@@ -74,15 +74,15 @@ if (process.env.NODE_TEST_WITH_ASYNC_HOOKS) {
util.inspect(initHandles[k]);
});
- const _addIdToDestroyList = async_wrap.addIdToDestroyList;
- async_wrap.addIdToDestroyList = function addIdToDestroyList(id) {
+ const _queueDestroyAsyncId = async_wrap.queueDestroyAsyncId;
+ async_wrap.queueDestroyAsyncId = function queueDestroyAsyncId(id) {
if (destroyListList[id] !== undefined) {
process._rawDebug(destroyListList[id]);
process._rawDebug();
throw new Error(`same id added twice (${id})`);
}
destroyListList[id] = new Error().stack;
- _addIdToDestroyList(id);
+ _queueDestroyAsyncId(id);
};
require('async_hooks').createHook({