diff options
author | Anna Henningsen <anna@addaleax.net> | 2020-04-08 18:14:00 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2020-06-14 15:53:38 +0300 |
commit | 8a7201b25fa2e5342b5d737742586bcd5ea1da5e (patch) | |
tree | 57382552b4b50d471b91ab41d19df3eeab0b67d4 /src/module_wrap.cc | |
parent | c17d2f99018ae48ed82a90a9eccc570ed1ae83c6 (diff) |
src: introduce BaseObject base FunctionTemplate
PR-URL: https://github.com/nodejs/node/pull/33772
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Diffstat (limited to 'src/module_wrap.cc')
-rw-r--r-- | src/module_wrap.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/module_wrap.cc b/src/module_wrap.cc index ab8dbc9cbf7..05f8b8ad762 100644 --- a/src/module_wrap.cc +++ b/src/module_wrap.cc @@ -699,6 +699,7 @@ void ModuleWrap::Initialize(Local<Object> target, tpl->SetClassName(FIXED_ONE_BYTE_STRING(isolate, "ModuleWrap")); tpl->InstanceTemplate()->SetInternalFieldCount( ModuleWrap::kInternalFieldCount); + tpl->Inherit(BaseObject::GetConstructorTemplate(env)); env->SetProtoMethod(tpl, "link", Link); env->SetProtoMethod(tpl, "instantiate", Instantiate); |