File tree Expand file tree Collapse file tree 4 files changed +5
-2
lines changed
Expand file tree Collapse file tree 4 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -465,7 +465,7 @@ inline void Environment::set_printed_error(bool value) {
465465}
466466
467467inline void Environment::set_trace_sync_io (bool value) {
468- options_-> trace_sync_io = value;
468+ trace_sync_io_ = value;
469469}
470470
471471inline bool Environment::abort_on_uncaught_exception () const {
Original file line number Diff line number Diff line change @@ -567,7 +567,7 @@ void Environment::StopProfilerIdleNotifier() {
567567}
568568
569569void Environment::PrintSyncTrace () const {
570- if (!options_-> trace_sync_io ) return ;
570+ if (!trace_sync_io_ ) return ;
571571
572572 HandleScope handle_scope (isolate ());
573573
Original file line number Diff line number Diff line change @@ -1272,6 +1272,7 @@ class Environment : public MemoryRetainer {
12721272 const uint64_t timer_base_;
12731273 std::shared_ptr<KVStore> env_vars_;
12741274 bool printed_error_ = false ;
1275+ bool trace_sync_io_ = false ;
12751276 bool emit_env_nonstring_warning_ = true ;
12761277 bool emit_err_name_warning_ = true ;
12771278 size_t async_callback_scope_depth_ = 0 ;
Original file line number Diff line number Diff line change @@ -111,6 +111,8 @@ int NodeMainInstance::Run() {
111111 env->async_hooks ()->pop_async_id (1 );
112112 }
113113
114+ env->set_trace_sync_io (env->options ()->trace_sync_io );
115+
114116 {
115117 SealHandleScope seal (isolate_);
116118 bool more;
You can’t perform that action at this time.
0 commit comments