@@ -176,7 +176,7 @@ static bool syntax_check_only = false;
176176static bool trace_deprecation = false ;
177177static bool throw_deprecation = false ;
178178static bool trace_sync_io = false ;
179- static bool force_async_hooks_checks = false ;
179+ static bool no_force_async_hooks_checks = false ;
180180static bool track_heap_objects = false ;
181181static const char * eval_string = nullptr ;
182182static std::vector<std::string> preload_modules;
@@ -3969,8 +3969,8 @@ static void PrintHelp() {
39693969 " stderr\n "
39703970 " --trace-sync-io show stack trace when use of sync IO\n "
39713971 " is detected after the first tick\n "
3972- " --force-async-hooks-checks\n "
3973- " enables checks for async_hooks\n "
3972+ " --no- force-async-hooks-checks\n "
3973+ " disable checks for async_hooks\n "
39743974 " --trace-events-enabled track trace events\n "
39753975 " --trace-event-categories comma separated list of trace event\n "
39763976 " categories to record\n "
@@ -4096,7 +4096,7 @@ static void CheckIfAllowedInEnv(const char* exe, bool is_env,
40964096 " --trace-warnings" ,
40974097 " --redirect-warnings" ,
40984098 " --trace-sync-io" ,
4099- " --force-async-hooks-checks" ,
4099+ " --no- force-async-hooks-checks" ,
41004100 " --trace-events-enabled" ,
41014101 " --trace-events-categories" ,
41024102 " --track-heap-objects" ,
@@ -4235,8 +4235,8 @@ static void ParseArgs(int* argc,
42354235 trace_deprecation = true ;
42364236 } else if (strcmp (arg, " --trace-sync-io" ) == 0 ) {
42374237 trace_sync_io = true ;
4238- } else if (strcmp (arg, " --force-async-hooks-checks" ) == 0 ) {
4239- force_async_hooks_checks = true ;
4238+ } else if (strcmp (arg, " --no- force-async-hooks-checks" ) == 0 ) {
4239+ no_force_async_hooks_checks = true ;
42404240 } else if (strcmp (arg, " --trace-events-enabled" ) == 0 ) {
42414241 trace_enabled = true ;
42424242 } else if (strcmp (arg, " --trace-event-categories" ) == 0 ) {
@@ -4892,8 +4892,8 @@ inline int Start(Isolate* isolate, IsolateData* isolate_data,
48924892
48934893 env.set_abort_on_uncaught_exception (abort_on_uncaught_exception);
48944894
4895- if (force_async_hooks_checks ) {
4896- env.async_hooks ()->force_checks ();
4895+ if (no_force_async_hooks_checks ) {
4896+ env.async_hooks ()->no_force_checks ();
48974897 }
48984898
48994899 {
0 commit comments