diff options
Diffstat (limited to 'src/module_wrap.h')
-rw-r--r-- | src/module_wrap.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/module_wrap.h b/src/module_wrap.h index fddb852a79..6c79781a9d 100644 --- a/src/module_wrap.h +++ b/src/module_wrap.h @@ -75,11 +75,11 @@ class ModuleWrap : public BaseObject { v8::Local<v8::Module> referrer); static ModuleWrap* GetFromModule(node::Environment*, v8::Local<v8::Module>); - Persistent<v8::Module> module_; - Persistent<v8::String> url_; + v8::Global<v8::Module> module_; + v8::Global<v8::String> url_; bool linked_ = false; - std::unordered_map<std::string, Persistent<v8::Promise>> resolve_cache_; - Persistent<v8::Context> context_; + std::unordered_map<std::string, v8::Global<v8::Promise>> resolve_cache_; + v8::Global<v8::Context> context_; uint32_t id_; }; |