Browse Source

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
v0.8.17-release
Fedor Indutny 12 years ago
parent
commit
7a2ae4c930
  1. 2
      src/node_object_wrap.h

2
src/node_object_wrap.h

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

Loading…
Cancel
Save