summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2019-09-20 10:48:23 +0900
committerMichaƫl Zasso <targos@protonmail.com>2019-10-01 14:37:22 +0200
commit8d880102778b4b57d1bf29f73c5b4309d8ac7059 (patch)
tree451bd9762d05dc12999b7240ee4a04c768efc555
parent2ea4cc07329132e059ada6923c9db495b054d380 (diff)
downloadnode-new-8d880102778b4b57d1bf29f73c5b4309d8ac7059.tar.gz
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>
-rw-r--r--src/node_errors.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/node_errors.cc b/src/node_errors.cc
index 0214521144..26ecbc566d 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;
}