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:
authorJoyee Cheung <joyeec9h3@gmail.com>2021-08-31 18:17:06 +0300
committerJoyee Cheung <joyeec9h3@gmail.com>2021-09-06 13:12:45 +0300
commitafc77605d27cc63b4d2d091e298bf6a5c9be2544 (patch)
treee41dc8cb4e891b6193f918997403a3317d8ac22a /src/base_object.h
parentb9ed7e554570508082a425b1131407485c3591a8 (diff)
src: register external references of BaseObject for snapshot
PR-URL: https://github.com/nodejs/node/pull/39961 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michael Dawson <midawson@redhat.com>
Diffstat (limited to 'src/base_object.h')
-rw-r--r--src/base_object.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/base_object.h b/src/base_object.h
index ec9d4a69d53..d46a0f21600 100644
--- a/src/base_object.h
+++ b/src/base_object.h
@@ -65,6 +65,8 @@ class BaseObject : public MemoryRetainer {
// was also passed to the `BaseObject()` constructor initially.
// This may return `nullptr` if the C++ object has not been constructed yet,
// e.g. when the JS object used `MakeLazilyInitializedJSTemplate`.
+ static inline void LazilyInitializedJSTemplateConstructor(
+ const v8::FunctionCallbackInfo<v8::Value>& args);
static inline BaseObject* FromJSObject(v8::Local<v8::Value> object);
template <typename T>
static inline T* FromJSObject(v8::Local<v8::Value> object);