diff options
author | himself65 <himself65@outlook.com> | 2019-06-26 14:17:29 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-07-06 08:47:00 +0300 |
commit | 7fa9abf6f2fc17fa524bde7d1f9b7f539efff994 (patch) | |
tree | 8a3577910c16e2c5cd58d10079b50da5b56da887 /src/node_report.cc | |
parent | 6aafee1771ae266c8f2a6d25d92f7cc3dd417b3b (diff) |
src: correct json writer placement in process.report
PR-URL: https://github.com/nodejs/node/pull/28433
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'src/node_report.cc')
-rw-r--r-- | src/node_report.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/node_report.cc b/src/node_report.cc index 84caf13c5b6..cabf8cf6625 100644 --- a/src/node_report.cc +++ b/src/node_report.cc @@ -366,7 +366,6 @@ static void PrintJavaScriptStack(JSONWriter* writer, int line = ss.find('\n'); if (line == -1) { writer->json_keyvalue("message", ss); - writer->json_objectend(); } else { std::string l = ss.substr(0, line); writer->json_keyvalue("message", l); @@ -382,8 +381,8 @@ static void PrintJavaScriptStack(JSONWriter* writer, ss = ss.substr(line + 1); line = ss.find('\n'); } + writer->json_arrayend(); } - writer->json_arrayend(); writer->json_objectend(); } |