Skip to content

Commit ac32340

Browse files
targosAli Sheikh
authored and
Ali Sheikh
committed
src: replace usage of deprecated HasOwnProperty
PR-URL: #5159 Reviewed-By: Ben Noordhuis <[email protected]>
1 parent a729208 commit ac32340

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_contextify.cc

+1-1
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)