diff --git a/src/node_object_wrap.h b/src/node_object_wrap.h index 32d584c849..c7fa3eb9ba 100644 --- a/src/node_object_wrap.h +++ b/src/node_object_wrap.h @@ -112,6 +112,8 @@ class NODE_EXTERN ObjectWrap { private: static void WeakCallback (v8::Persistent value, void *data) { + v8::HandleScope scope; + ObjectWrap *obj = static_cast(data); assert(value == obj->handle_); assert(!obj->refs_);