Skip to content

Commit 30aceed

Browse files
danbevaddaleax
authored andcommitted
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 <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 8029a24 commit 30aceed

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/node_contextify.h

+2-4
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)