fix: deinit platform before resetting node env (#23116)
This commit is contained in:
parent
111f9155e0
commit
5f43c829a0
1 changed files with 1 additions and 1 deletions
|
@ -507,8 +507,8 @@ void ElectronBrowserMainParts::PostMainMessageLoopRun() {
|
|||
// Destroy node platform after all destructors_ are executed, as they may
|
||||
// invoke Node/V8 APIs inside them.
|
||||
node_debugger_->Stop();
|
||||
node_env_.reset();
|
||||
js_env_->OnMessageLoopDestroying();
|
||||
node_env_.reset();
|
||||
|
||||
fake_browser_process_->PostMainMessageLoopRun();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue