Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2020-03-29 21:11:56 +0300
committerAnna Henningsen <anna@addaleax.net>2020-04-02 18:25:57 +0300
commit72e521f5e891b61c88d3452fcf4abab3cdf0f848 (patch)
tree443c45ac5b37367536cce85564b712a42fab55dc /src/node_report.cc
parentc4b381a1311ef7d77b9e13dc4b1448649823ba02 (diff)
src: move JSONWriter into its own file
The JSONWriter feature is not inherently related to the report feature in any way. As a drive-by fix, remove a number of unused header includes. PR-URL: https://github.com/nodejs/node/pull/32552 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Diffstat (limited to 'src/node_report.cc')
-rw-r--r--src/node_report.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/node_report.cc b/src/node_report.cc
index ff2206dbb44..98da24c9567 100644
--- a/src/node_report.cc
+++ b/src/node_report.cc
@@ -1,4 +1,5 @@
#include "env-inl.h"
+#include "json_utils.h"
#include "node_report.h"
#include "debug_utils-inl.h"
#include "diagnosticfilename-inl.h"
@@ -16,6 +17,7 @@
#include <dlfcn.h>
#endif
+#include <iostream>
#include <cstring>
#include <ctime>
#include <cwctype>
@@ -30,6 +32,7 @@ using node::arraysize;
using node::ConditionVariable;
using node::DiagnosticFilename;
using node::Environment;
+using node::JSONWriter;
using node::Mutex;
using node::NativeSymbolDebuggingContext;
using node::TIME_TYPE;