fix: reset node env earlier during shutdown (#23068)

Co-authored-by: Jeremy Apthorp <nornagon@nornagon.net>
This commit is contained in:
trop[bot]
2020-04-10 09:37:04 -07:00
committed by GitHub
parent afeda19d15
commit 82b65dcca7

View File

@@ -542,6 +542,7 @@ 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();
fake_browser_process_->PostMainMessageLoopRun();