diff options
author | cjihrig <cjihrig@gmail.com> | 2019-03-02 02:00:51 +0300 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2019-03-04 03:26:04 +0300 |
commit | b271b0315a2ecec3cd1aae0c5556a31f5911dcec (patch) | |
tree | b9439f5a7a3203c270b98c91a97f19e233e7d8f2 /src/node_report.cc | |
parent | 4db423c0eea82ecb06ae386ced910f8de414a192 (diff) |
report: use triggerReport() to handle signals
This commit uses the triggerReport() binding to handle
signals and removes the custom onUserSignal() function.
PR-URL: https://github.com/nodejs/node/pull/26386
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_report.cc')
-rw-r--r-- | src/node_report.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_report.cc b/src/node_report.cc index bd6e7100416..4617fb62715 100644 --- a/src/node_report.cc +++ b/src/node_report.cc @@ -377,7 +377,7 @@ static void PrintJavaScriptStack(JSONWriter* writer, std::string ss; if ((!strcmp(location, "OnFatalError")) || - (!strcmp(location, "OnUserSignal"))) { + (!strcmp(location, "Signal"))) { ss = "No stack.\nUnavailable.\n"; } else { String::Utf8Value sv(isolate, stackstr); |