summaryrefslogtreecommitdiff
path: root/src/node_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_util.cc')
-rw-r--r--src/node_util.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/node_util.cc b/src/node_util.cc
index 961df0b73c..180c58c416 100644
--- a/src/node_util.cc
+++ b/src/node_util.cc
@@ -13,6 +13,7 @@ using v8::Context;
using v8::Function;
using v8::FunctionCallbackInfo;
using v8::FunctionTemplate;
+using v8::Global;
using v8::IndexFilter;
using v8::Integer;
using v8::Isolate;
@@ -189,7 +190,7 @@ class WeakReference : public BaseObject {
SET_NO_MEMORY_INFO()
private:
- Persistent<Object> target_;
+ Global<Object> target_;
};
static void GuessHandleType(const FunctionCallbackInfo<Value>& args) {