Skip to content

Commit

Permalink
fixup! fixup! src,node-api: fatal errors should not assume a current …
Browse files Browse the repository at this point in the history
…isolate may exist
  • Loading branch information
legendecas committed May 16, 2021
1 parent 0b3883d commit fc0390c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/node_errors.cc
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ void OnFatalError(const char* location, const char* message) {
// TODO(legendecas): investigate failures on triggering node-report with
// nullptr isolates.
if (isolate == nullptr) {
fflush(stderr);
ABORT();
}
Environment* env = Environment::GetCurrent(isolate);
Expand Down

0 comments on commit fc0390c

Please sign in to comment.