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/base_object-inl.h | |
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/base_object-inl.h')
-rw-r--r-- | src/base_object-inl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/base_object-inl.h b/src/base_object-inl.h index f6e980e8749..b3fb1562707 100644 --- a/src/base_object-inl.h +++ b/src/base_object-inl.h @@ -156,6 +156,7 @@ BaseObject::MakeLazilyInitializedJSTemplate(Environment* env) { }; v8::Local<v8::FunctionTemplate> t = env->NewFunctionTemplate(constructor); + t->Inherit(BaseObject::GetConstructorTemplate(env)); t->InstanceTemplate()->SetInternalFieldCount( BaseObject::kInternalFieldCount); return t; |