Skip to content

Commit fc0390c

Browse files
committed
fixup! fixup! src,node-api: fatal errors should not assume a current isolate may exist
1 parent 0b3883d commit fc0390c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/node_errors.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ void OnFatalError(const char* location, const char* message) {
428428
// TODO(legendecas): investigate failures on triggering node-report with
429429
// nullptr isolates.
430430
if (isolate == nullptr) {
431+
fflush(stderr);
431432
ABORT();
432433
}
433434
Environment* env = Environment::GetCurrent(isolate);

0 commit comments

Comments
 (0)