From d4cc30f18c2bf446c31ee8f7d05260a1c540fd1a Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sat, 3 Aug 2013 22:18:35 +0200 Subject: src: use PersistentToLocal() in a few more places Update a few more `Local::New(isolate, persistent)` call sites to `PersistentToLocal(isolate, persistent)` - the latter has a fast path for non-weak persistent references. --- src/handle_wrap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/handle_wrap.h') diff --git a/src/handle_wrap.h b/src/handle_wrap.h index 6e6f3904b8..cbe7e3248b 100644 --- a/src/handle_wrap.h +++ b/src/handle_wrap.h @@ -69,7 +69,7 @@ class HandleWrap { virtual ~HandleWrap(); inline v8::Local object() { - return v8::Local::New(node_isolate, persistent()); + return PersistentToLocal(node_isolate, persistent()); } inline v8::Persistent& persistent() { -- cgit v1.2.3