object_wrap: add missing HandleScope
authorFedor Indutny <fedor.indutny@gmail.com>
Fri, 4 Jan 2013 12:37:38 +0000 (16:37 +0400)
committerFedor Indutny <fedor.indutny@gmail.com>
Wed, 9 Jan 2013 08:16:04 +0000 (12:16 +0400)
by Sven Panne's suggestion, see [0] for details.

[0]: https://code.google.com/p/v8/issues/detail?id=2468

src/node_object_wrap.h

index 32d584c849a2123021223f29fbcf0850a6de7a91..c7fa3eb9ba566fbf8d64f54bd81b66680ab62ef3 100644 (file)
@@ -112,6 +112,8 @@ class NODE_EXTERN ObjectWrap {
 
  private:
   static void WeakCallback (v8::Persistent<v8::Value> value, void *data) {
+    v8::HandleScope scope;
+
     ObjectWrap *obj = static_cast<ObjectWrap*>(data);
     assert(value == obj->handle_);
     assert(!obj->refs_);