diff options
Diffstat (limited to 'src/module_wrap.h')
-rw-r--r-- | src/module_wrap.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/module_wrap.h b/src/module_wrap.h index ec4d6bf577..bedf665165 100644 --- a/src/module_wrap.h +++ b/src/module_wrap.h @@ -36,8 +36,11 @@ class ModuleWrap : public BaseObject { static void Instantiate(const v8::FunctionCallbackInfo<v8::Value>& args); static void Evaluate(const v8::FunctionCallbackInfo<v8::Value>& args); static void Namespace(const v8::FunctionCallbackInfo<v8::Value>& args); - static void GetUrl(v8::Local<v8::String> property, - const v8::PropertyCallbackInfo<v8::Value>& info); + static void GetStatus(const v8::FunctionCallbackInfo<v8::Value>& args); + static void GetError(const v8::FunctionCallbackInfo<v8::Value>& args); + static void GetStaticDependencySpecifiers( + const v8::FunctionCallbackInfo<v8::Value>& args); + static void Resolve(const v8::FunctionCallbackInfo<v8::Value>& args); static void SetImportModuleDynamicallyCallback( const v8::FunctionCallbackInfo<v8::Value>& args); @@ -50,6 +53,7 @@ class ModuleWrap : public BaseObject { v8::Persistent<v8::String> url_; bool linked_ = false; std::unordered_map<std::string, v8::Persistent<v8::Promise>> resolve_cache_; + v8::Persistent<v8::Context> context_; }; } // namespace loader |