From 3b0995e6ecf580d9cecd25817f4fee4f56e423b9 Mon Sep 17 00:00:00 2001 From: Daeyeon Jeong Date: Thu, 30 Jun 2022 17:17:12 +0900 Subject: [PATCH] src: remove a stale comment in `async_hooks` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-By: James M Snell Reviewed-By: Juan José Arboleda --- src/env-inl.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/env-inl.h b/src/env-inl.h index 96dd6c30ad57bf..fdc4f1f7ba4c16 100644 --- a/src/env-inl.h +++ b/src/env-inl.h @@ -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);