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.9.6-release
Fedor Indutny 12 years ago
parent
commit
97056c064f
  1. 2
      src/node_object_wrap.h

2
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_);

Loading…
Cancel
Save