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/req_wrap.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/req_wrap.h') diff --git a/src/req_wrap.h b/src/req_wrap.h index d4c1180ded..794e4f3769 100644 --- a/src/req_wrap.h +++ b/src/req_wrap.h @@ -22,6 +22,7 @@ #ifndef SRC_REQ_WRAP_H_ #define SRC_REQ_WRAP_H_ +#include "node.h" #include "queue.h" namespace node { @@ -69,7 +70,7 @@ class ReqWrap { } inline v8::Local object() { - return v8::Local::New(node_isolate, persistent()); + return PersistentToLocal(node_isolate, persistent()); } inline v8::Persistent& persistent() { -- cgit v1.2.3