File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 16
16
17
17
namespace report {
18
18
using node::Environment;
19
+ using node::Mutex;
19
20
using node::Utf8Value;
20
21
using v8::Boolean ;
21
22
using v8::Context;
@@ -134,12 +135,14 @@ static void SetSignal(const FunctionCallbackInfo<Value>& info) {
134
135
}
135
136
136
137
static void ShouldReportOnFatalError (const FunctionCallbackInfo<Value>& info) {
138
+ Mutex::ScopedLock lock (node::per_process::cli_options_mutex);
137
139
info.GetReturnValue ().Set (
138
140
node::per_process::cli_options->report_on_fatalerror );
139
141
}
140
142
141
143
static void SetReportOnFatalError (const FunctionCallbackInfo<Value>& info) {
142
144
CHECK (info[0 ]->IsBoolean ());
145
+ Mutex::ScopedLock lock (node::per_process::cli_options_mutex);
143
146
node::per_process::cli_options->report_on_fatalerror = info[0 ]->IsTrue ();
144
147
}
145
148
You can’t perform that action at this time.
0 commit comments