diff options
Diffstat (limited to 'test/built-ins/Array/prototype/filter/15.4.4.20-6-7.js')
-rw-r--r-- | test/built-ins/Array/prototype/filter/15.4.4.20-6-7.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/built-ins/Array/prototype/filter/15.4.4.20-6-7.js b/test/built-ins/Array/prototype/filter/15.4.4.20-6-7.js index 8075b1500..a778ad888 100644 --- a/test/built-ins/Array/prototype/filter/15.4.4.20-6-7.js +++ b/test/built-ins/Array/prototype/filter/15.4.4.20-6-7.js @@ -2,6 +2,7 @@ // This code is governed by the BSD license found in the LICENSE file. /*--- +esid: sec-array.prototype.filter es5id: 15.4.4.20-6-7 description: > Array.prototype.filter returns an empty array if 'length' is 0 @@ -12,10 +13,10 @@ description: > foo.prototype = new Array(1, 2, 3); function foo() {} var f = new foo(); - + var o = { toString: function () { return '0';}}; f.length = o; - + // objects inherit the default valueOf method of the Object object; // that simply returns the itself. Since the default valueOf() method // does not return a primitive value, ES next tries to convert the object @@ -24,7 +25,7 @@ description: > function cb(){} var a = f.filter(cb); - + assert(Array.isArray(a), 'Array.isArray(a) !== true'); assert.sameValue(a.length, 0, 'a.length'); |