| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -316,15 +316,9 @@ void OnFatalError(const char* location, const char* message) { | |||
| 316 | 316 | Isolate* isolate = Isolate::GetCurrent(); | |
| 317 | 317 | HandleScope handle_scope(isolate); | |
| 318 | 318 | Environment* env = Environment::GetCurrent(isolate); | |
| 319 | - if (env != nullptr) { | ||
| 320 | - std::shared_ptr<PerIsolateOptions> options = env->isolate_data()->options(); | ||
| 321 | - if (options->report_on_fatalerror) { | ||
| 322 | - report::TriggerNodeReport( | ||
| 323 | - isolate, env, message, __func__, "", Local<String>()); | ||
| 324 | - } | ||
| 325 | - } else { | ||
| 319 | + if (env == nullptr || env->isolate_data()->options()->report_on_fatalerror) { | ||
| 326 | 320 | report::TriggerNodeReport( | |
| 327 | - isolate, nullptr, message, __func__, "", Local<String>()); | ||
| 321 | + isolate, env, message, __func__, "", Local<String>()); | ||
| 328 | 322 | } | |
| 329 | 323 | #endif // NODE_REPORT | |
| 330 | 324 | fflush(stderr); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments