From 19481d380193c7935cad01515f25bac38fa3d2d8 Mon Sep 17 00:00:00 2001 From: Brian Terlson <brian.terlson@microsoft.com> Date: Fri, 15 May 2015 15:22:12 -0700 Subject: [PATCH] Use a very negative number so ES5 implementations don't loop forever --- .../Array.prototype.concat_array-like-negative-length.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-negative-length.js b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-negative-length.js index c16a442f27..e5c901845b 100644 --- a/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-negative-length.js +++ b/test/built-ins/Array/prototype/concat/Array.prototype.concat_array-like-negative-length.js @@ -9,14 +9,14 @@ description: Array.prototype.concat array like negative length includes: [compareArray.js] ---*/ var obj = { - "length": -6, + "length": -4294967294, "1": "A", "3": "B", "5": "C" }; obj[Symbol.isConcatSpreadable] = true; assert(compareArray([].concat(obj), [])); -obj.length = -6.7; +obj.length = -4294967294; assert(compareArray([].concat(obj), [])); -obj.length = "-6"; +obj.length = "-4294967294"; assert(compareArray([].concat(obj), [])); -- GitLab