summaryrefslogtreecommitdiff
path: root/src/async_wrap.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/async_wrap.cc')
-rw-r--r--src/async_wrap.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/async_wrap.cc b/src/async_wrap.cc
index 9cfa0924c7..e822255265 100644
--- a/src/async_wrap.cc
+++ b/src/async_wrap.cc
@@ -35,6 +35,7 @@ using v8::EscapableHandleScope;
using v8::Function;
using v8::FunctionCallbackInfo;
using v8::FunctionTemplate;
+using v8::Global;
using v8::HandleScope;
using v8::Integer;
using v8::Isolate;
@@ -346,8 +347,8 @@ class DestroyParam {
public:
double asyncId;
Environment* env;
- Persistent<Object> target;
- Persistent<Object> propBag;
+ Global<Object> target;
+ Global<Object> propBag;
};
void AsyncWrap::WeakCallback(const WeakCallbackInfo<DestroyParam>& info) {