From b271b0315a2ecec3cd1aae0c5556a31f5911dcec Mon Sep 17 00:00:00 2001 From: cjihrig Date: Fri, 1 Mar 2019 18:00:51 -0500 Subject: 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 Reviewed-By: James M Snell --- src/node_report.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/node_report.cc') diff --git a/src/node_report.cc b/src/node_report.cc index bd6e710041..4617fb6271 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); -- cgit v1.2.3