node::Environment should be destroyed before AtomBindings

The shutdown code may still uses the APIs provieded by AtomBindings.
This commit is contained in:
Cheng Zhao 2017-03-20 13:01:28 -07:00
parent 253caf35ab
commit 99d3fce3c7

View file

@ -80,9 +80,9 @@ class AtomBrowserMainParts : public brightray::BrowserMainParts {
std::unique_ptr<Browser> browser_;
std::unique_ptr<JavascriptEnvironment> js_env_;
std::unique_ptr<NodeEnvironment> node_env_;
std::unique_ptr<NodeBindings> node_bindings_;
std::unique_ptr<AtomBindings> atom_bindings_;
std::unique_ptr<NodeEnvironment> node_env_;
std::unique_ptr<NodeDebugger> node_debugger_;
base::Timer gc_timer_;