diff --git a/src/node_contextify.cc b/src/node_contextify.cc index 1819c5f21d7bc3..866e3bde6d1570 100644 --- a/src/node_contextify.cc +++ b/src/node_contextify.cc @@ -140,7 +140,7 @@ class ContextifyContext { int length = names->Length(); for (int i = 0; i < length; i++) { Local key = names->Get(i)->ToString(env()->isolate()); - bool has = sandbox->HasOwnProperty(key); + bool has = sandbox->HasOwnProperty(context, key).FromJust(); if (!has) { // Could also do this like so: //