From fcf2e4207edab9b85f8435b89489dd6148a7637e Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Fri, 11 May 2018 09:20:26 +0200 Subject: [PATCH] src: make env_ and context_ private MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit makes the currently protected members env_ and context_ private in node_contextify.h. PR-URL: https://github.com/nodejs/node/pull/20671 Reviewed-By: Tiancheng "Timothy" Gu Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: Tobias Nießen Reviewed-By: James M Snell --- src/node_contextify.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/node_contextify.h b/src/node_contextify.h index 20bf2dafe20..2ebfef7f273 100644 --- a/src/node_contextify.h +++ b/src/node_contextify.h @@ -15,10 +15,6 @@ struct ContextOptions { }; class ContextifyContext { - protected: - Environment* const env_; - Persistent context_; - public: ContextifyContext(Environment* env, v8::Local sandbox_obj, @@ -97,6 +93,8 @@ class ContextifyContext { static void IndexedPropertyDeleterCallback( uint32_t index, const v8::PropertyCallbackInfo& args); + Environment* const env_; + Persistent context_; }; } // namespace contextify