From 97056c064fd45e17471c682d1cbcdd925dc0c84e Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Fri, 4 Jan 2013 16:37:38 +0400 Subject: [PATCH] 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 --- src/node_object_wrap.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/node_object_wrap.h b/src/node_object_wrap.h index 4e0746891e..ee08057a21 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_);