@@ -173,7 +173,7 @@ static bool syntax_check_only = false;
173173static bool trace_deprecation = false ;
174174static bool throw_deprecation = false ;
175175static bool trace_sync_io = false ;
176- static bool force_async_hooks_checks = false ;
176+ static bool no_force_async_hooks_checks = false ;
177177static bool track_heap_objects = false ;
178178static const char * eval_string = nullptr ;
179179static std::vector<std::string> preload_modules;
@@ -3899,8 +3899,8 @@ static void PrintHelp() {
38993899 " stderr\n "
39003900 " --trace-sync-io show stack trace when use of sync IO\n "
39013901 " is detected after the first tick\n "
3902- " --force-async-hooks-checks\n "
3903- " enables checks for async_hooks\n "
3902+ " --no- force-async-hooks-checks\n "
3903+ " disable checks for async_hooks\n "
39043904 " --trace-events-enabled track trace events\n "
39053905 " --trace-event-categories comma separated list of trace event\n "
39063906 " categories to record\n "
@@ -4026,7 +4026,7 @@ static void CheckIfAllowedInEnv(const char* exe, bool is_env,
40264026 " --trace-warnings" ,
40274027 " --redirect-warnings" ,
40284028 " --trace-sync-io" ,
4029- " --force-async-hooks-checks" ,
4029+ " --no- force-async-hooks-checks" ,
40304030 " --trace-events-enabled" ,
40314031 " --trace-events-categories" ,
40324032 " --track-heap-objects" ,
@@ -4165,8 +4165,8 @@ static void ParseArgs(int* argc,
41654165 trace_deprecation = true ;
41664166 } else if (strcmp (arg, " --trace-sync-io" ) == 0 ) {
41674167 trace_sync_io = true ;
4168- } else if (strcmp (arg, " --force-async-hooks-checks" ) == 0 ) {
4169- force_async_hooks_checks = true ;
4168+ } else if (strcmp (arg, " --no- force-async-hooks-checks" ) == 0 ) {
4169+ no_force_async_hooks_checks = true ;
41704170 } else if (strcmp (arg, " --trace-events-enabled" ) == 0 ) {
41714171 trace_enabled = true ;
41724172 } else if (strcmp (arg, " --trace-event-categories" ) == 0 ) {
@@ -4815,8 +4815,8 @@ inline int Start(Isolate* isolate, IsolateData* isolate_data,
48154815
48164816 env.set_abort_on_uncaught_exception (abort_on_uncaught_exception);
48174817
4818- if (force_async_hooks_checks ) {
4819- env.async_hooks ()->force_checks ();
4818+ if (no_force_async_hooks_checks ) {
4819+ env.async_hooks ()->no_force_checks ();
48204820 }
48214821
48224822 {
0 commit comments