diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2019-09-20 04:48:23 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-09-25 07:24:00 +0300 |
commit | 355f2ad466dc155cae233e3990d19b094dd72b46 (patch) | |
tree | 498c887ff77dcf1671b1e46c3624ae234226659c /src/node_errors.cc | |
parent | b2634238d8d50e3801cb716e3f3165be1c50418a (diff) |
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>
Diffstat (limited to 'src/node_errors.cc')
-rw-r--r-- | src/node_errors.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/node_errors.cc b/src/node_errors.cc index b33e4936ae7..d3a409b1ab4 100644 --- a/src/node_errors.cc +++ b/src/node_errors.cc @@ -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; } |