Skip to content

Commit fcf2e42

Browse files
committed
src: make env_ and context_ private
This commit makes the currently protected members env_ and context_ private in node_contextify.h. PR-URL: #20671 Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent f22c7c1 commit fcf2e42

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/node_contextify.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ struct ContextOptions {
1515
};
1616

1717
class ContextifyContext {
18-
protected:
19-
Environment* const env_;
20-
Persistent<v8::Context> context_;
21-
2218
public:
2319
ContextifyContext(Environment* env,
2420
v8::Local<v8::Object> sandbox_obj,
@@ -97,6 +93,8 @@ class ContextifyContext {
9793
static void IndexedPropertyDeleterCallback(
9894
uint32_t index,
9995
const v8::PropertyCallbackInfo<v8::Boolean>& args);
96+
Environment* const env_;
97+
Persistent<v8::Context> context_;
10098
};
10199

102100
} // namespace contextify

0 commit comments

Comments
 (0)