diff --git a/lib/internal/async_hooks.js b/lib/internal/async_hooks.js index b7a8c581cccd0b..66ea96ce9d7298 100644 --- a/lib/internal/async_hooks.js +++ b/lib/internal/async_hooks.js @@ -41,11 +41,11 @@ const { execution_async_resources, owner_symbol } = async_wrap; -// Store the pair executionAsyncId and triggerAsyncId in a std::stack on -// Environment::AsyncHooks::async_ids_stack_ tracks the resource responsible for -// the current execution stack. This is unwound as each resource exits. In the -// case of a fatal exception this stack is emptied after calling each hook's -// after() callback. +// Store the pair executionAsyncId and triggerAsyncId in a AliasedFloat64Array +// in Environment::AsyncHooks::async_ids_stack_ which tracks the resource +// responsible for the current execution stack. This is unwound as each resource +// exits. In the case of a fatal exception this stack is emptied after calling +// each hook's after() callback. const { pushAsyncContext: pushAsyncContext_, popAsyncContext: popAsyncContext_