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>2019-08-25 20:35:22 +0300
committerRich Trott <rtrott@gmail.com>2019-09-08 06:57:35 +0300
commit0af62aae07ccbb3783030367ffe405f45687abb3 (patch)
tree30bc49fab49a58052775ac4a27265c48232be7f5 /src/handle_wrap.h
parent1e01f3f022ba3bb57acc0eb47699f5ebd4ed5ac1 (diff)
src: make ELDHistogram a HandleWrap
This simplifies the implementation of ELDHistogram a bit, and more generally allows us to have weak JS references associated with `HandleWrap`s. PR-URL: https://github.com/nodejs/node/pull/29317 Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/handle_wrap.h')
-rw-r--r--src/handle_wrap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/handle_wrap.h b/src/handle_wrap.h
index b2722511c3c..fbcea4ae448 100644
--- a/src/handle_wrap.h
+++ b/src/handle_wrap.h
@@ -76,6 +76,8 @@ class HandleWrap : public AsyncWrap {
static v8::Local<v8::FunctionTemplate> GetConstructorTemplate(
Environment* env);
+ void MakeWeak(); // This hides BaseObject::MakeWeak()
+
protected:
HandleWrap(Environment* env,
v8::Local<v8::Object> object,