src: try showing stack traces when process._fatalException is not set
So that the stack trace of errors shown in internal code run during bootstrap (before process._fatalException is set) can be printed. PR-URL: https://github.com/nodejs/node/pull/29624 Refs: https://github.com/nodejs/node/pull/29593 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
b2634238d8
commit
355f2ad466
@ -324,6 +324,8 @@ static void ReportFatalException(Environment* env,
|
||||
break;
|
||||
}
|
||||
case EnhanceFatalException::kDontEnhance: {
|
||||
USE(err_obj->Get(env->context(), env->stack_string())
|
||||
.ToLocal(&stack_trace));
|
||||
report_to_inspector();
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user