From 161c45ea19195c7fe10a90ed62f52cbbdbb25dd7 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 93693f0dae50af..063b0c00065408 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: //