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 ac32340

Browse filesBrowse files
targosAli Sheikh
authored andcommitted
src: replace usage of deprecated HasOwnProperty
PR-URL: #5159 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
1 parent a729208 commit ac32340
Copy full SHA for ac32340

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎src/node_contextify.cc‎

Copy file name to clipboardExpand all lines: src/node_contextify.cc
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class ContextifyContext {
140140
int length = names->Length();
141141
for (int i = 0; i < length; i++) {
142142
Local<String> key = names->Get(i)->ToString(env()->isolate());
143-
bool has = sandbox->HasOwnProperty(key);
143+
bool has = sandbox->HasOwnProperty(context, key).FromJust();
144144
if (!has) {
145145
// Could also do this like so:
146146
//

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.