Skip to content

Commit 7a2ae4c

Browse files
committed
object_wrap: add missing HandleScope
by Sven Panne's suggestion, see [0] for details. [0]: https://code.google.com/p/v8/issues/detail?id=2468
1 parent ad6769f commit 7a2ae4c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/node_object_wrap.h

+2
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ class NODE_EXTERN ObjectWrap {
112112

113113
private:
114114
static void WeakCallback (v8::Persistent<v8::Value> value, void *data) {
115+
v8::HandleScope scope;
116+
115117
ObjectWrap *obj = static_cast<ObjectWrap*>(data);
116118
assert(value == obj->handle_);
117119
assert(!obj->refs_);

0 commit comments

Comments
 (0)