diff options
author | Andreas Madsen <amwebdk@gmail.com> | 2017-09-26 15:50:10 +0200 |
---|---|---|
committer | Andreas Madsen <amwebdk@gmail.com> | 2017-09-26 15:50:10 +0200 |
commit | 3a69ef55e06cda552e7ad295ddf904e1c70ae13f (patch) | |
tree | a33643b534a256e0cefdb0a275b38ee5ee9defcf /test/common/index.js | |
parent | f9e5709ea0bad223d44ade1760917764dca4c0cb (diff) | |
download | android-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.js | 6 |
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({ |