diff options
author | Fedor Indutny <fedor.indutny@gmail.com> | 2013-01-04 16:37:38 +0400 |
---|---|---|
committer | Fedor Indutny <fedor.indutny@gmail.com> | 2013-01-04 16:39:24 +0400 |
commit | 97056c064fd45e17471c682d1cbcdd925dc0c84e (patch) | |
tree | 9e86b94438536454d7094cd68e59feeca3a0837e /src/node_object_wrap.h | |
parent | 0054264d884394b06cedf4885d3a0e7c90c34c64 (diff) |
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
Diffstat (limited to 'src/node_object_wrap.h')
-rw-r--r-- | src/node_object_wrap.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/node_object_wrap.h b/src/node_object_wrap.h index 4e0746891ed..ee08057a21b 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<v8::Value> value, void *data) { + v8::HandleScope scope; + ObjectWrap *obj = static_cast<ObjectWrap*>(data); assert(value == obj->handle_); assert(!obj->refs_); |