diff options
author | Andreas Madsen <amwebdk@gmail.com> | 2017-06-14 12:39:53 +0200 |
---|---|---|
committer | Andreas Madsen <amwebdk@gmail.com> | 2017-06-14 12:39:53 +0200 |
commit | de762b71f2e10d8eb6392ad6d4325b7ffc08b7fd (patch) | |
tree | e22a8325b4f994455f0959c311c4edf8a5095d43 /test/async-hooks/test-callback-error.js | |
parent | 448c4c62d2b413226dfdef03d6f8d243de0984a3 (diff) | |
download | android-node-v8-de762b71f2e10d8eb6392ad6d4325b7ffc08b7fd.tar.gz android-node-v8-de762b71f2e10d8eb6392ad6d4325b7ffc08b7fd.tar.bz2 android-node-v8-de762b71f2e10d8eb6392ad6d4325b7ffc08b7fd.zip |
async_hooks: rename currentId and triggerId
currentId is renamed to executionAsyncId
triggerId is renamed to triggerAsyncId
AsyncResource.triggerId is renamed to AsyncResource.triggerAsyncId
AsyncHooksGetCurrentId is renamed to AsyncHooksGetExecutionAsyncId
AsyncHooksGetTriggerId is renamed to AsyncHooksGetTriggerAsyncId
PR-URL: https://github.com/nodejs/node/pull/13490
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Diffstat (limited to 'test/async-hooks/test-callback-error.js')
-rw-r--r-- | test/async-hooks/test-callback-error.js | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/test/async-hooks/test-callback-error.js b/test/async-hooks/test-callback-error.js index 6b09e4bb49..6b7ab7d0ea 100644 --- a/test/async-hooks/test-callback-error.js +++ b/test/async-hooks/test-callback-error.js @@ -12,25 +12,26 @@ switch (process.argv[2]) { oninit: common.mustCall(() => { throw new Error('test_init_callback'); }) }).enable(); - async_hooks.emitInit(async_hooks.currentId(), 'test_init_callback_type', - async_hooks.triggerId()); + async_hooks.emitInit(async_hooks.executionAsyncId(), + 'test_init_callback_type', + async_hooks.triggerAsyncId()); break; case 'test_callback': initHooks({ onbefore: common.mustCall(() => { throw new Error('test_callback'); }) }).enable(); - async_hooks.emitInit(async_hooks.currentId(), 'test_callback_type', - async_hooks.triggerId()); - async_hooks.emitBefore(async_hooks.currentId()); + async_hooks.emitInit(async_hooks.executionAsyncId(), 'test_callback_type', + async_hooks.triggerAsyncId()); + async_hooks.emitBefore(async_hooks.executionAsyncId()); break; case 'test_callback_abort': initHooks({ oninit: common.mustCall(() => { throw new Error('test_callback_abort'); }) }).enable(); - async_hooks.emitInit(async_hooks.currentId(), 'test_callback_abort', - async_hooks.triggerId()); + async_hooks.emitInit(async_hooks.executionAsyncId(), 'test_callback_abort', + async_hooks.triggerAsyncId()); break; } |