mirror of https://github.com/tc39/test262.git
Increase unlikely array length
This commit is contained in:
parent
17fc10942e
commit
86b94099ad
|
@ -139,8 +139,10 @@ function isSameValue(a, b) {
|
||||||
return a === b;
|
return a === b;
|
||||||
}
|
}
|
||||||
|
|
||||||
function isWritable(obj, name, verifyProp, value) {
|
function isWritable(obj, name, value) {
|
||||||
var unlikelyValue = Array.isArray(obj) && name === "length" ? 217493 : "unlikelyValue";
|
var unlikelyValue = Array.isArray(obj) && name === "length" ?
|
||||||
|
Math.pow(2, 32) - 1 :
|
||||||
|
"unlikelyValue";
|
||||||
var newValue = value || unlikelyValue;
|
var newValue = value || unlikelyValue;
|
||||||
var hadValue = Object.prototype.hasOwnProperty.call(obj, name);
|
var hadValue = Object.prototype.hasOwnProperty.call(obj, name);
|
||||||
var oldValue = obj[name];
|
var oldValue = obj[name];
|
||||||
|
|
Loading…
Reference in New Issue