Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 30aceed

Browse filesBrowse 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 <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 8029a24 commit 30aceed
Copy full SHA for 30aceed

File tree

Expand file treeCollapse file tree

1 file changed

+2
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-4
lines changed
Open diff view settings
Collapse file

‎src/node_contextify.h‎

Copy file name to clipboardExpand all lines: src/node_contextify.h
+2-4Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.