From 2e886e9f452e95a4761a3d85540ba561538b4438 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Sat, 2 Jun 2018 13:13:59 +0200 Subject: src: make handle onclose property a Symbol MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-By: Benjamin Gruenbaum Reviewed-By: Shingo Inoue Reviewed-By: Matteo Collina Reviewed-By: Tiancheng "Timothy" Gu Reviewed-By: John-David Dalton Reviewed-By: Gus Caplan --- src/async_wrap.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/async_wrap.h') diff --git a/src/async_wrap.h b/src/async_wrap.h index 451bcfe12e..377702a8d6 100644 --- a/src/async_wrap.h +++ b/src/async_wrap.h @@ -158,10 +158,18 @@ class AsyncWrap : public BaseObject { v8::MaybeLocal MakeCallback(const v8::Local cb, int argc, v8::Local* argv); + inline v8::MaybeLocal MakeCallback( + const v8::Local symbol, + int argc, + v8::Local* argv); inline v8::MaybeLocal MakeCallback( const v8::Local symbol, int argc, v8::Local* argv); + inline v8::MaybeLocal MakeCallback( + const v8::Local symbol, + int argc, + v8::Local* argv); inline v8::MaybeLocal MakeCallback(uint32_t index, int argc, v8::Local* argv); -- cgit v1.2.3