diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2013-08-04 00:18:35 +0400 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2013-08-04 00:23:28 +0400 |
commit | d4cc30f18c2bf446c31ee8f7d05260a1c540fd1a (patch) | |
tree | b310ac55fc92e3182775830951f4068cd6756426 /src/req_wrap.h | |
parent | e5791f74f0bb3f52efa5429b5ae9425cbde46f97 (diff) |
src: use PersistentToLocal() in a few more places
Update a few more `Local<T>::New(isolate, persistent)` call sites to
`PersistentToLocal(isolate, persistent)` - the latter has a fast path
for non-weak persistent references.
Diffstat (limited to 'src/req_wrap.h')
-rw-r--r-- | src/req_wrap.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/req_wrap.h b/src/req_wrap.h index d4c1180ded8..794e4f37693 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<v8::Object> object() { - return v8::Local<v8::Object>::New(node_isolate, persistent()); + return PersistentToLocal(node_isolate, persistent()); } inline v8::Persistent<v8::Object>& persistent() { |