summaryrefslogtreecommitdiff
path: root/src/handle_wrap.h
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2013-08-03 22:18:35 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2013-08-03 22:23:28 +0200
commitd4cc30f18c2bf446c31ee8f7d05260a1c540fd1a (patch)
treeb310ac55fc92e3182775830951f4068cd6756426 /src/handle_wrap.h
parente5791f74f0bb3f52efa5429b5ae9425cbde46f97 (diff)
downloadandroid-node-v8-d4cc30f18c2bf446c31ee8f7d05260a1c540fd1a.tar.gz
android-node-v8-d4cc30f18c2bf446c31ee8f7d05260a1c540fd1a.tar.bz2
android-node-v8-d4cc30f18c2bf446c31ee8f7d05260a1c540fd1a.zip
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/handle_wrap.h')
-rw-r--r--src/handle_wrap.h2
1 files changed, 1 insertions, 1 deletions
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<v8::Object> object() {
- return v8::Local<v8::Object>::New(node_isolate, persistent());
+ return PersistentToLocal(node_isolate, persistent());
}
inline v8::Persistent<v8::Object>& persistent() {