Skip to content

Commit a94e7da

Browse files
danbevcodebytere
authored andcommitted
lib: update executionAsyncId/triggerAsyncId comment
This commit updates the comment referring to the executionAsyncId/triggerAsyncId pair being stored in a std::stack. It looks like this was changed from std::stack to AliasedFloat64Array in Commit 83e5215 ("async_hooks: use typed array stack as fast path"). PR-URL: #33396 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 7e5d5c2 commit a94e7da

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/internal/async_hooks.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ const {
3838
async_id_fields,
3939
execution_async_resources
4040
} = async_wrap;
41-
// Store the pair executionAsyncId and triggerAsyncId in a std::stack on
42-
// Environment::AsyncHooks::async_ids_stack_ tracks the resource responsible for
43-
// the current execution stack. This is unwound as each resource exits. In the
44-
// case of a fatal exception this stack is emptied after calling each hook's
45-
// after() callback.
41+
// Store the pair executionAsyncId and triggerAsyncId in a AliasedFloat64Array
42+
// in Environment::AsyncHooks::async_ids_stack_ which tracks the resource
43+
// responsible for the current execution stack. This is unwound as each resource
44+
// exits. In the case of a fatal exception this stack is emptied after calling
45+
// each hook's after() callback.
4646
const {
4747
pushAsyncContext: pushAsyncContext_,
4848
popAsyncContext: popAsyncContext_

0 commit comments

Comments
 (0)