Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2020-04-08 18:14:00 +0300
committerAnna Henningsen <anna@addaleax.net>2020-06-14 15:53:38 +0300
commit8a7201b25fa2e5342b5d737742586bcd5ea1da5e (patch)
tree57382552b4b50d471b91ab41d19df3eeab0b67d4 /src/module_wrap.cc
parentc17d2f99018ae48ed82a90a9eccc570ed1ae83c6 (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.cc1
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);