From ad046cedddba8dbf460401c1750857e272abb864 Mon Sep 17 00:00:00 2001 From: Alexey Shvayka Date: Wed, 25 Mar 2020 14:45:14 +0200 Subject: [PATCH] Avoid using Array.isArray directly --- harness/propertyHelper.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/harness/propertyHelper.js b/harness/propertyHelper.js index f38a6c7751..2b9c692d9d 100644 --- a/harness/propertyHelper.js +++ b/harness/propertyHelper.js @@ -139,8 +139,9 @@ function isSameValue(a, b) { return a === b; } +var __isArray = Array.isArray; function isWritable(obj, name, verifyProp, value) { - var unlikelyValue = Array.isArray(obj) && name === "length" ? + var unlikelyValue = __isArray(obj) && name === "length" ? Math.pow(2, 32) - 1 : "unlikelyValue"; var newValue = value || unlikelyValue;