diff --git a/src/node_internals.h b/src/node_internals.h index c8d12f40bf..ced62e08b6 100644 --- a/src/node_internals.h +++ b/src/node_internals.h @@ -245,12 +245,6 @@ inline MUST_USE_RESULT bool ParseArrayIndex(v8::Handle arg, return true; } -template -inline v8::Local PersistentToLocal( - const v8::Persistent& persistent) { - return PersistentToLocal(node_isolate, persistent); -} - template inline v8::Local PersistentToLocal( v8::Isolate* isolate, @@ -269,7 +263,7 @@ CachedBase::CachedBase() { template CachedBase::operator v8::Handle() const { - return PersistentToLocal(handle_); + return PersistentToLocal(node_isolate, handle_); } template @@ -307,7 +301,7 @@ v8::Handle MakeCallback( const TypeName method, int argc, v8::Handle* argv) { - v8::Local recv_obj = PersistentToLocal(recv); + v8::Local recv_obj = PersistentToLocal(node_isolate, recv); return MakeCallback(recv_obj, method, argc, argv); } @@ -325,7 +319,7 @@ inline bool HasInstance( const v8::Persistent& function_template, v8::Handle value) { v8::Local function_template_handle = - PersistentToLocal(function_template); + PersistentToLocal(node_isolate, function_template); return function_template_handle->HasInstance(value); } @@ -333,7 +327,8 @@ inline v8::Local NewInstance( const v8::Persistent& ctor, int argc, v8::Handle* argv) { - v8::Local constructor_handle = PersistentToLocal(ctor); + v8::Local constructor_handle = + PersistentToLocal(node_isolate, ctor); return constructor_handle->NewInstance(argc, argv); }