Avoid touch an Environemnt after it gets destroyed

This commit is contained in:
Cheng Zhao 2017-03-02 16:50:15 +09:00
parent 29278e500b
commit 24574f7299
3 changed files with 11 additions and 0 deletions

View file

@ -27,6 +27,9 @@ class AtomBindings {
// load native code from Electron instead.
void BindTo(v8::Isolate* isolate, v8::Local<v8::Object> process);
// Should be called when a node::Environment has been destroyed.
void EnvironmentDestroyed(node::Environment* env);
static void Log(const base::string16& message);
static void Crash();