Run callback of setDestructor immediately when GC happens

Fix #4733.
This commit is contained in:
Cheng Zhao 2016-03-21 21:42:12 +09:00
parent a52285596e
commit 52d09e9600
2 changed files with 9 additions and 9 deletions

View file

@ -23,6 +23,7 @@ class ObjectLifeMonitor {
v8::Local<v8::Function> destructor);
static void OnObjectGC(const v8::WeakCallbackInfo<ObjectLifeMonitor>& data);
static void Free(const v8::WeakCallbackInfo<ObjectLifeMonitor>& data);
void RunCallback();