mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
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: https://github.com/nodejs/node/pull/16318 Refs: https://github.com/nodejs/node/pull/15454#issuecomment-337840053 Signed-off-by: Daeyeon Jeong daeyeon.dev@gmail.com PR-URL: https://github.com/nodejs/node/pull/43317 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
This commit is contained in:
1 parent
350a6a8d59
commit
3b0995e6ec
1 file changed
-2
@@ -179,8 +179,6 @@ inline bool AsyncHooks::pop_async_context(double async_id) {
|
||||
|
||||
// Ask for the async_id to be restored as a check that the stack
|
||||
// hasn't been corrupted.
|
||||
// Since async_hooks is experimental, do only perform the check
|
||||
// when async_hooks is enabled.
|
||||
if (UNLIKELY(fields_[kCheck] > 0 &&
|
||||
async_id_fields_[kExecutionAsyncId] != async_id)) {
|
||||
FailWithCorruptedAsyncStack(async_id);
|
||||
|
||||
Reference in new issue
Block a user