diff --git a/src/env-inl.h b/src/env-inl.h index 946642b929c16f..e1a3809f6721fa 100644 --- a/src/env-inl.h +++ b/src/env-inl.h @@ -416,7 +416,7 @@ inline void Environment::set_printed_error(bool value) { } inline void Environment::set_trace_sync_io(bool value) { - trace_sync_io_ = value; + options_->trace_sync_io = value; } inline bool Environment::abort_on_uncaught_exception() const { diff --git a/src/env.cc b/src/env.cc index 4ddb714852f092..bb2160d73d6367 100644 --- a/src/env.cc +++ b/src/env.cc @@ -113,7 +113,6 @@ Environment::Environment(IsolateData* isolate_data, tick_info_(context->GetIsolate()), timer_base_(uv_now(isolate_data->event_loop())), printed_error_(false), - trace_sync_io_(false), abort_on_uncaught_exception_(false), emit_env_nonstring_warning_(true), makecallback_cntr_(0), @@ -309,7 +308,7 @@ void Environment::StopProfilerIdleNotifier() { } void Environment::PrintSyncTrace() const { - if (!trace_sync_io_) + if (!options_->trace_sync_io) return; HandleScope handle_scope(isolate()); diff --git a/src/env.h b/src/env.h index a0d9f714310515..ae88727822d3de 100644 --- a/src/env.h +++ b/src/env.h @@ -888,7 +888,6 @@ class Environment { TickInfo tick_info_; const uint64_t timer_base_; bool printed_error_; - bool trace_sync_io_; bool abort_on_uncaught_exception_; bool emit_env_nonstring_warning_; size_t makecallback_cntr_; diff --git a/src/node.cc b/src/node.cc index d3501c151b685d..22480f6d21a1d1 100644 --- a/src/node.cc +++ b/src/node.cc @@ -3054,8 +3054,6 @@ inline int Start(Isolate* isolate, IsolateData* isolate_data, env.async_hooks()->pop_async_id(1); } - env.set_trace_sync_io(env.options()->trace_sync_io); - { SealHandleScope seal(isolate); bool more;