Skip to content

Commit 5ae30bf

Browse files
daeyeontargos
authored andcommitted
src: remove a stale comment in async_hooks
This removes a comment relevant to runtime checks for `async_hooks`. Even if `async_hooks` is experimental, the check pointed by the comment is performed as default unless `--no-force-async-hooks-checks` is given from CLI arguments. Refs: #16318 Refs: #15454 (comment) Signed-off-by: Daeyeon Jeong daeyeon.dev@gmail.com PR-URL: #43317 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
1 parent d834d21 commit 5ae30bf

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/env-inl.h

-2
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,6 @@ inline bool AsyncHooks::pop_async_context(double async_id) {
179179

180180
// Ask for the async_id to be restored as a check that the stack
181181
// hasn't been corrupted.
182-
// Since async_hooks is experimental, do only perform the check
183-
// when async_hooks is enabled.
184182
if (UNLIKELY(fields_[kCheck] > 0 &&
185183
async_id_fields_[kExecutionAsyncId] != async_id)) {
186184
FailWithCorruptedAsyncStack(async_id);

0 commit comments

Comments
 (0)