fix: broken --trace-sync-io flag in Node.js (#24529)
This commit is contained in:
parent
990a6f8b6c
commit
ce87a7e69f
3 changed files with 8 additions and 1 deletions
|
@ -256,6 +256,8 @@ int NodeMain(int argc, char* argv[]) {
|
|||
node::LoadEnvironment(env);
|
||||
}
|
||||
|
||||
env->set_trace_sync_io(env->options()->trace_sync_io);
|
||||
|
||||
{
|
||||
v8::SealHandleScope seal(isolate);
|
||||
bool more;
|
||||
|
@ -279,6 +281,9 @@ int NodeMain(int argc, char* argv[]) {
|
|||
}
|
||||
|
||||
node_debugger.Stop();
|
||||
|
||||
env->set_trace_sync_io(false);
|
||||
|
||||
exit_code = node::EmitExit(env);
|
||||
|
||||
node::ResetStdio();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue