Update with new ScopedPersistent interface.

This commit is contained in:
Cheng Zhao 2014-08-10 21:19:07 +08:00
parent f60d8066f8
commit b4f00f3b40
3 changed files with 3 additions and 3 deletions

View file

@ -16,7 +16,7 @@ void ObjectLifeMonitor::BindTo(v8::Isolate* isolate,
target->SetHiddenValue(MATE_STRING_NEW(isolate, "destructor"), destructor);
ObjectLifeMonitor* olm = new ObjectLifeMonitor();
olm->handle_.reset(target);
olm->handle_.reset(isolate, target);
olm->handle_.SetWeak(olm, WeakCallback);
}