summaryrefslogtreecommitdiff
path: root/src/handle_wrap.h
diff options
context:
space:
mode:
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() {