diff options
author | Trevor Norris <trev.norris@gmail.com> | 2013-03-19 14:55:05 -0700 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2013-03-20 01:11:02 +0100 |
commit | f65e14ed1daa20a6d2aae08556b2a059f5d90599 (patch) | |
tree | 58d433ccbb58dbbb09b9700176e422c88685f287 /src/handle_wrap.cc | |
parent | da4d79ac47c1ad5923b26fd78c385deeb82d9370 (diff) | |
download | android-node-v8-f65e14ed1daa20a6d2aae08556b2a059f5d90599.tar.gz android-node-v8-f65e14ed1daa20a6d2aae08556b2a059f5d90599.tar.bz2 android-node-v8-f65e14ed1daa20a6d2aae08556b2a059f5d90599.zip |
src: pass Isolate to all applicable api
Update the api to pass node_isolate to all supported methods.
Much thanks to Ben Noordhuis and his work in 51f6e6a.
Diffstat (limited to 'src/handle_wrap.cc')
-rw-r--r-- | src/handle_wrap.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/handle_wrap.cc b/src/handle_wrap.cc index 99fb6bf853..49daa4e5e6 100644 --- a/src/handle_wrap.cc +++ b/src/handle_wrap.cc @@ -53,7 +53,7 @@ void HandleWrap::Initialize(Handle<Object> target) { Handle<Value> HandleWrap::Ref(const Arguments& args) { - HandleScope scope; + HandleScope scope(node_isolate); UNWRAP_NO_ABORT(HandleWrap) @@ -62,12 +62,12 @@ Handle<Value> HandleWrap::Ref(const Arguments& args) { wrap->flags_ &= ~kUnref; } - return v8::Undefined(); + return v8::Undefined(node_isolate); } Handle<Value> HandleWrap::Unref(const Arguments& args) { - HandleScope scope; + HandleScope scope(node_isolate); UNWRAP_NO_ABORT(HandleWrap) @@ -76,19 +76,19 @@ Handle<Value> HandleWrap::Unref(const Arguments& args) { wrap->flags_ |= kUnref; } - return v8::Undefined(); + return v8::Undefined(node_isolate); } Handle<Value> HandleWrap::Close(const Arguments& args) { - HandleScope scope; + HandleScope scope(node_isolate); HandleWrap *wrap = static_cast<HandleWrap*>( args.Holder()->GetAlignedPointerFromInternalField(0)); // guard against uninitialized handle or double close if (wrap == NULL || wrap->handle__ == NULL) { - return Undefined(); + return Undefined(node_isolate); } assert(!wrap->object_.IsEmpty()); @@ -101,7 +101,7 @@ Handle<Value> HandleWrap::Close(const Arguments& args) { wrap->flags_ |= kCloseCallback; } - return Undefined(); + return Undefined(node_isolate); } @@ -112,7 +112,7 @@ HandleWrap::HandleWrap(Handle<Object> object, uv_handle_t* h) { h->data = this; } - HandleScope scope; + HandleScope scope(node_isolate); assert(object_.IsEmpty()); assert(object->InternalFieldCount() > 0); object_ = v8::Persistent<v8::Object>::New(node_isolate, object); |