From ac32340997a0d9f51f3733393d6190b56251910d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Mon, 8 Feb 2016 22:57:47 +0100 Subject: [PATCH] src: replace usage of deprecated HasOwnProperty PR-URL: https://github.com/nodejs/node/pull/5159 Reviewed-By: Ben Noordhuis --- src/node_contextify.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: //