mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: broken --trace-sync-io flag in Node.js (#24544)
* fix: --trace-sync-io flag in Node.js * Also handle set_trace_sync_io in ElectronBrowserMainParts Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
@@ -257,6 +257,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;
|
||||
@@ -280,6 +282,9 @@ int NodeMain(int argc, char* argv[]) {
|
||||
}
|
||||
|
||||
node_debugger.Stop();
|
||||
|
||||
env->set_trace_sync_io(false);
|
||||
|
||||
exit_code = node::EmitExit(env);
|
||||
|
||||
node::ResetStdio();
|
||||
|
||||
Reference in New Issue
Block a user