summaryrefslogtreecommitdiff
path: root/src/req_wrap.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/req_wrap.h')
-rw-r--r--src/req_wrap.h3
1 files changed, 2 insertions, 1 deletions
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<v8::Object> object() {
- return v8::Local<v8::Object>::New(node_isolate, persistent());
+ return PersistentToLocal(node_isolate, persistent());
}
inline v8::Persistent<v8::Object>& persistent() {