From 32cd018fc809516eee0ce161c39ff268447a6214 Mon Sep 17 00:00:00 2001 From: Ian Park Date: Tue, 20 Nov 2018 01:26:21 +0900 Subject: [PATCH] Update comparison logic of object property `instance.hasOwnProperty` has potential danger because of some object could be eliminate own prototype chain. Update code be more reliable. #22308 --- Libraries/vendor/core/mergeInto.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/vendor/core/mergeInto.js b/Libraries/vendor/core/mergeInto.js index 31e869059328ea..024289f67533f7 100644 --- a/Libraries/vendor/core/mergeInto.js +++ b/Libraries/vendor/core/mergeInto.js @@ -23,7 +23,7 @@ function mergeInto(one, two) { if (two != null) { checkMergeObjectArg(two); for (var key in two) { - if (!two.hasOwnProperty(key)) { + if (!Object.prototype.hasOwnProperty.call(two, key)) { continue; } one[key] = two[key];