Skip to content

Commit

Permalink
src: try showing stack traces when process._fatalException is not set
Browse files Browse the repository at this point in the history
So that the stack trace of errors shown in internal code run during
bootstrap (before process._fatalException is set) can be printed.

PR-URL: #29624
Refs: #29593
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
joyeecheung authored and targos committed Oct 1, 2019
1 parent 2ea4cc0 commit 8d88010
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/node_errors.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8d88010

Please sign in to comment.