From 350fc8064e3dfbd5723f5d952102a010cae94510 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sat, 3 Aug 2013 01:28:51 +0200 Subject: [PATCH] src: remove non-isolate PersistentToLocal(), v2 Commit 78d9094 updated src/*.cc to use the version of PersistentToLocal that takes a v8::Isolate* as its first argument. This commit removes the non-isolate version. --- src/node_internals.h | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) 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); }