@@ -76,7 +76,7 @@ void PerProcessOptions::CheckOptions(std::vector<std::string>* errors) {
7676
7777void PerIsolateOptions::CheckOptions (std::vector<std::string>* errors) {
7878 per_env->CheckOptions (errors);
79- # ifdef NODE_REPORT
79+
8080 if (per_env->experimental_report ) {
8181 // Assign the report_signal default value here. Once the
8282 // --experimental-report flag is dropped, move this initialization to
@@ -117,7 +117,6 @@ void PerIsolateOptions::CheckOptions(std::vector<std::string>* errors) {
117117 " --report-uncaught-exception option is valid only when "
118118 " --experimental-report is set" );
119119 }
120- #endif // NODE_REPORT
121120}
122121
123122void EnvironmentOptions::CheckOptions (std::vector<std::string>* errors) {
@@ -361,12 +360,10 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() {
361360 &EnvironmentOptions::experimental_vm_modules,
362361 kAllowedInEnvironment );
363362 AddOption (" --experimental-worker" , " " , NoOp{}, kAllowedInEnvironment );
364- #ifdef NODE_REPORT
365363 AddOption (" --experimental-report" ,
366364 " enable report generation" ,
367365 &EnvironmentOptions::experimental_report,
368366 kAllowedInEnvironment );
369- #endif // NODE_REPORT
370367 AddOption (" --experimental-wasi-unstable-preview1" ,
371368 " experimental WASI support" ,
372369 &EnvironmentOptions::experimental_wasi,
@@ -620,8 +617,6 @@ PerIsolateOptionsParser::PerIsolateOptionsParser(
620617 " disable runtime allocation of executable memory" ,
621618 V8Option{},
622619 kAllowedInEnvironment );
623-
624- #ifdef NODE_REPORT
625620 AddOption (" --report-uncaught-exception" ,
626621 " generate diagnostic report on uncaught exceptions" ,
627622 &PerIsolateOptions::report_uncaught_exception,
@@ -650,7 +645,6 @@ PerIsolateOptionsParser::PerIsolateOptionsParser(
650645 " (default: current working directory of Node.js process)" ,
651646 &PerIsolateOptions::report_directory,
652647 kAllowedInEnvironment );
653- #endif // NODE_REPORT
654648
655649 Insert (eop, &PerIsolateOptions::get_per_env_options);
656650}
0 commit comments