fix: reset node env earlier during shutdown (#23039)
This commit is contained in:
parent
abbe7417f2
commit
9e8ee3c899
1 changed files with 1 additions and 0 deletions
|
@ -495,6 +495,7 @@ void ElectronBrowserMainParts::PostMainMessageLoopRun() {
|
||||||
// Destroy node platform after all destructors_ are executed, as they may
|
// Destroy node platform after all destructors_ are executed, as they may
|
||||||
// invoke Node/V8 APIs inside them.
|
// invoke Node/V8 APIs inside them.
|
||||||
node_debugger_->Stop();
|
node_debugger_->Stop();
|
||||||
|
node_env_.reset();
|
||||||
js_env_->OnMessageLoopDestroying();
|
js_env_->OnMessageLoopDestroying();
|
||||||
|
|
||||||
fake_browser_process_->PostMainMessageLoopRun();
|
fake_browser_process_->PostMainMessageLoopRun();
|
||||||
|
|
Loading…
Reference in a new issue