@@ -76,7 +76,7 @@ void PerProcessOptions::CheckOptions(std::vector<std::string>* errors) {
76
76
77
77
void PerIsolateOptions::CheckOptions (std::vector<std::string>* errors) {
78
78
per_env->CheckOptions (errors);
79
- # ifdef NODE_REPORT
79
+
80
80
if (per_env->experimental_report ) {
81
81
// Assign the report_signal default value here. Once the
82
82
// --experimental-report flag is dropped, move this initialization to
@@ -117,7 +117,6 @@ void PerIsolateOptions::CheckOptions(std::vector<std::string>* errors) {
117
117
" --report-uncaught-exception option is valid only when "
118
118
" --experimental-report is set" );
119
119
}
120
- #endif // NODE_REPORT
121
120
}
122
121
123
122
void EnvironmentOptions::CheckOptions (std::vector<std::string>* errors) {
@@ -361,12 +360,10 @@ EnvironmentOptionsParser::EnvironmentOptionsParser() {
361
360
&EnvironmentOptions::experimental_vm_modules,
362
361
kAllowedInEnvironment );
363
362
AddOption (" --experimental-worker" , " " , NoOp{}, kAllowedInEnvironment );
364
- #ifdef NODE_REPORT
365
363
AddOption (" --experimental-report" ,
366
364
" enable report generation" ,
367
365
&EnvironmentOptions::experimental_report,
368
366
kAllowedInEnvironment );
369
- #endif // NODE_REPORT
370
367
AddOption (" --experimental-wasi-unstable-preview1" ,
371
368
" experimental WASI support" ,
372
369
&EnvironmentOptions::experimental_wasi,
@@ -620,8 +617,6 @@ PerIsolateOptionsParser::PerIsolateOptionsParser(
620
617
" disable runtime allocation of executable memory" ,
621
618
V8Option{},
622
619
kAllowedInEnvironment );
623
-
624
- #ifdef NODE_REPORT
625
620
AddOption (" --report-uncaught-exception" ,
626
621
" generate diagnostic report on uncaught exceptions" ,
627
622
&PerIsolateOptions::report_uncaught_exception,
@@ -650,7 +645,6 @@ PerIsolateOptionsParser::PerIsolateOptionsParser(
650
645
" (default: current working directory of Node.js process)" ,
651
646
&PerIsolateOptions::report_directory,
652
647
kAllowedInEnvironment );
653
- #endif // NODE_REPORT
654
648
655
649
Insert (eop, &PerIsolateOptions::get_per_env_options);
656
650
}
0 commit comments