diff options
author | Anna Henningsen <anna@addaleax.net> | 2018-06-02 14:13:59 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-06-06 20:43:42 +0300 |
commit | 2e886e9f452e95a4761a3d85540ba561538b4438 (patch) | |
tree | 86cab682db79fdab45d7688aa1ff40b95f6cf0e3 /src/async_wrap.h | |
parent | 5c4d2e60b500a3d093de54b76b17b8f4c52f5da4 (diff) |
src: make handle onclose property a Symbol
This makes the property “more” hidden when exposing a `HandleWrap`
as public API, e.g. for upcoming `MessagePort`s.
PR-URL: https://github.com/nodejs/node/pull/20876
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Diffstat (limited to 'src/async_wrap.h')
-rw-r--r-- | src/async_wrap.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/async_wrap.h b/src/async_wrap.h index 451bcfe12e6..377702a8d6e 100644 --- a/src/async_wrap.h +++ b/src/async_wrap.h @@ -159,9 +159,17 @@ class AsyncWrap : public BaseObject { int argc, v8::Local<v8::Value>* argv); inline v8::MaybeLocal<v8::Value> MakeCallback( + const v8::Local<v8::Symbol> symbol, + int argc, + v8::Local<v8::Value>* argv); + inline v8::MaybeLocal<v8::Value> MakeCallback( const v8::Local<v8::String> symbol, int argc, v8::Local<v8::Value>* argv); + inline v8::MaybeLocal<v8::Value> MakeCallback( + const v8::Local<v8::Name> symbol, + int argc, + v8::Local<v8::Value>* argv); inline v8::MaybeLocal<v8::Value> MakeCallback(uint32_t index, int argc, v8::Local<v8::Value>* argv); |