add esid to array/prototype/filter tests (#1102)

This commit is contained in:
Sue Lockwood 2017-06-30 07:36:17 -07:00 committed by Leo Balter
parent 6155f6161a
commit f395b67d29
218 changed files with 246 additions and 28 deletions

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-1-1 es5id: 15.4.4.20-1-1
description: Array.prototype.filter applied to undefined throws a TypeError description: Array.prototype.filter applied to undefined throws a TypeError
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-1-10 es5id: 15.4.4.20-1-10
description: Array.prototype.filter applied to the Math object description: Array.prototype.filter applied to the Math object
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-1-11 es5id: 15.4.4.20-1-11
description: Array.prototype.filter applied to Date object description: Array.prototype.filter applied to Date object
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-1-12 es5id: 15.4.4.20-1-12
description: Array.prototype.filter applied to RegExp object description: Array.prototype.filter applied to RegExp object
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-1-13 es5id: 15.4.4.20-1-13
description: Array.prototype.filter applied to the JSON object description: Array.prototype.filter applied to the JSON object
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-1-14 es5id: 15.4.4.20-1-14
description: Array.prototype.filter applied to Error object description: Array.prototype.filter applied to Error object
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-1-15 es5id: 15.4.4.20-1-15
description: Array.prototype.filter applied to the Arguments object description: Array.prototype.filter applied to the Arguments object
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-1-2 es5id: 15.4.4.20-1-2
description: Array.prototype.filter applied to null throws a TypeError description: Array.prototype.filter applied to null throws a TypeError
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-1-3 es5id: 15.4.4.20-1-3
description: Array.prototype.filter applied to boolean primitive description: Array.prototype.filter applied to boolean primitive
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-1-4 es5id: 15.4.4.20-1-4
description: Array.prototype.filter applied to Boolean Object description: Array.prototype.filter applied to Boolean Object
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-1-5 es5id: 15.4.4.20-1-5
description: Array.prototype.filter applied to number primitive description: Array.prototype.filter applied to number primitive
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-1-6 es5id: 15.4.4.20-1-6
description: Array.prototype.filter applied to Number object description: Array.prototype.filter applied to Number object
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-1-7 es5id: 15.4.4.20-1-7
description: Array.prototype.filter applied to string primitive description: Array.prototype.filter applied to string primitive
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-1-8 es5id: 15.4.4.20-1-8
description: Array.prototype.filter applied to String object description: Array.prototype.filter applied to String object
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-1-9 es5id: 15.4.4.20-1-9
description: Array.prototype.filter applied to Function object description: Array.prototype.filter applied to Function object
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-10-1 es5id: 15.4.4.20-10-1
description: > description: >
Array.prototype.filter doesn't mutate the Array on which it is Array.prototype.filter doesn't mutate the Array on which it is

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-10-2 es5id: 15.4.4.20-10-2
description: > description: >
Array.prototype.filter returns new Array with length equal to Array.prototype.filter returns new Array with length equal to

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-10-3 es5id: 15.4.4.20-10-3
description: Array.prototype.filter - subclassed array when length is reduced description: Array.prototype.filter - subclassed array when length is reduced
---*/ ---*/
@ -10,10 +11,10 @@ description: Array.prototype.filter - subclassed array when length is reduced
function foo() {} function foo() {}
var f = new foo(); var f = new foo();
f.length = 1; f.length = 1;
function cb(){return true;} function cb(){return true;}
var a = f.filter(cb); var a = f.filter(cb);
assert(Array.isArray(a), 'Array.isArray(a) !== true'); assert(Array.isArray(a), 'Array.isArray(a) !== true');
assert.sameValue(a.length, 1, 'a.length'); assert.sameValue(a.length, 1, 'a.length');

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-10-4 es5id: 15.4.4.20-10-4
description: Array.prototype.filter doesn't visit expandos description: Array.prototype.filter doesn't visit expandos
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-2-1 es5id: 15.4.4.20-2-1
description: > description: >
Array.prototype.filter applied to Array-like object, 'length' is Array.prototype.filter applied to Array-like object, 'length' is

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-2-10 es5id: 15.4.4.20-2-10
description: > description: >
Array.prototype.filter applied to Array-like object, 'length' is Array.prototype.filter applied to Array-like object, 'length' is

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-2-11 es5id: 15.4.4.20-2-11
description: > description: >
Array.prototype.filter applied to Array-like object, 'length' is Array.prototype.filter applied to Array-like object, 'length' is

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-2-12 es5id: 15.4.4.20-2-12
description: > description: >
Array.prototype.filter - 'length' is own accessor property without Array.prototype.filter - 'length' is own accessor property without

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-2-13 es5id: 15.4.4.20-2-13
description: > description: >
Array.prototype.filter applied to the Array-like object that Array.prototype.filter applied to the Array-like object that

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-2-14 es5id: 15.4.4.20-2-14
description: > description: >
Array.prototype.filter applied to the Array-like object that Array.prototype.filter applied to the Array-like object that

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-2-17 es5id: 15.4.4.20-2-17
description: > description: >
Array.prototype.filter applied to the Arguments object, which Array.prototype.filter applied to the Arguments object, which

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-2-18 es5id: 15.4.4.20-2-18
description: > description: >
Array.prototype.filter applied to String object, which implements Array.prototype.filter applied to String object, which implements

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-2-19 es5id: 15.4.4.20-2-19
description: > description: >
Array.prototype.filter applied to Function object, which Array.prototype.filter applied to Function object, which

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-2-2 es5id: 15.4.4.20-2-2
description: Array.prototype.filter - 'length' is own data property on an Array description: Array.prototype.filter - 'length' is own data property on an Array
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-2-3 es5id: 15.4.4.20-2-3
description: > description: >
Array.prototype.filter applied to Array-like object, 'length' is Array.prototype.filter applied to Array-like object, 'length' is

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-2-4 es5id: 15.4.4.20-2-4
description: > description: >
Array.prototype.filter - 'length' is own data property that Array.prototype.filter - 'length' is own data property that

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-2-5 es5id: 15.4.4.20-2-5
description: > description: >
Array.prototype.filter to Array-like object, 'length' is an own Array.prototype.filter to Array-like object, 'length' is an own

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-2-6 es5id: 15.4.4.20-2-6
description: > description: >
Array.prototype.filter applied to Array-like object, 'length' is Array.prototype.filter applied to Array-like object, 'length' is

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-2-7 es5id: 15.4.4.20-2-7
description: > description: >
Array.prototype.filter applied to Array-like object, 'length' is Array.prototype.filter applied to Array-like object, 'length' is

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-2-8 es5id: 15.4.4.20-2-8
description: > description: >
Array.prototype.filter applied to Array-like object, 'length' is Array.prototype.filter applied to Array-like object, 'length' is

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-2-9 es5id: 15.4.4.20-2-9
description: > description: >
Array.prototype.filter applied to Array-like object, 'length' is Array.prototype.filter applied to Array-like object, 'length' is

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-3-1 es5id: 15.4.4.20-3-1
description: Array.prototype.filter - value of 'length' is undefined description: Array.prototype.filter - value of 'length' is undefined
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-3-10 es5id: 15.4.4.20-3-10
description: > description: >
Array.prototype.filter - value of 'length' is a number (value is Array.prototype.filter - value of 'length' is a number (value is

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-3-11 es5id: 15.4.4.20-3-11
description: > description: >
Array.prototype.filter - 'length' is a string containing a Array.prototype.filter - 'length' is a string containing a

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-3-12 es5id: 15.4.4.20-3-12
description: > description: >
Array.prototype.filter - 'length' is a string containing a Array.prototype.filter - 'length' is a string containing a

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-3-13 es5id: 15.4.4.20-3-13
description: > description: >
Array.prototype.filter - 'length' is a string containing a decimal Array.prototype.filter - 'length' is a string containing a decimal

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-3-14 es5id: 15.4.4.20-3-14
description: Array.prototype.filter - 'length' is a string containing -Infinity description: Array.prototype.filter - 'length' is a string containing -Infinity
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-3-15 es5id: 15.4.4.20-3-15
description: > description: >
Array.prototype.filter - 'length' is a string containing an Array.prototype.filter - 'length' is a string containing an

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-3-16 es5id: 15.4.4.20-3-16
description: > description: >
Array.prototype.filter - 'length' is a string containing a hex Array.prototype.filter - 'length' is a string containing a hex

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-3-17 es5id: 15.4.4.20-3-17
description: > description: >
Array.prototype.filter - 'length' is a string containing a number Array.prototype.filter - 'length' is a string containing a number

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-3-18 es5id: 15.4.4.20-3-18
description: > description: >
Array.prototype.filter - value of 'length' is a string that can't Array.prototype.filter - value of 'length' is a string that can't

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-3-19 es5id: 15.4.4.20-3-19
description: > description: >
Array.prototype.filter - value of 'length' is an Object which has Array.prototype.filter - value of 'length' is an Object which has

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-3-2 es5id: 15.4.4.20-3-2
description: > description: >
Array.prototype.filter applied on an Array-like object if 'length' Array.prototype.filter applied on an Array-like object if 'length'

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-3-20 es5id: 15.4.4.20-3-20
description: > description: >
Array.prototype.filter - value of 'length' is an Object which has Array.prototype.filter - value of 'length' is an Object which has

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-3-21 es5id: 15.4.4.20-3-21
description: > description: >
Array.prototype.filter - 'length' is an object that has an own Array.prototype.filter - 'length' is an object that has an own

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-3-22 es5id: 15.4.4.20-3-22
description: > description: >
Array.prototype.filter throws TypeError exception when 'length' is Array.prototype.filter throws TypeError exception when 'length' is

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-3-23 es5id: 15.4.4.20-3-23
description: > description: >
Array.prototype.filter uses inherited valueOf method when 'length' Array.prototype.filter uses inherited valueOf method when 'length'

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-3-24 es5id: 15.4.4.20-3-24
description: > description: >
Array.prototype.filter - value of 'length' is a positive Array.prototype.filter - value of 'length' is a positive

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-3-25 es5id: 15.4.4.20-3-25
description: > description: >
Array.prototype.filter - value of 'length' is a negative Array.prototype.filter - value of 'length' is a negative

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-3-3 es5id: 15.4.4.20-3-3
description: Array.prototype.filter - value of 'length' is a number (value is 0) description: Array.prototype.filter - value of 'length' is a number (value is 0)
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-3-4 es5id: 15.4.4.20-3-4
description: > description: >
Array.prototype.filter - value of 'length' is a number (value is Array.prototype.filter - value of 'length' is a number (value is

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-3-5 es5id: 15.4.4.20-3-5
description: > description: >
Array.prototype.filter - value of 'length' is a number (value is Array.prototype.filter - value of 'length' is a number (value is

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-3-6 es5id: 15.4.4.20-3-6
description: > description: >
Array.prototype.filter - value of 'length' is a number (value is Array.prototype.filter - value of 'length' is a number (value is

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-3-7 es5id: 15.4.4.20-3-7
description: > description: >
Array.prototype.filter - value of 'length' is a number (value is Array.prototype.filter - value of 'length' is a number (value is

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-3-9 es5id: 15.4.4.20-3-9
description: > description: >
Array.prototype.filter - value of 'length' is a number (value is Array.prototype.filter - value of 'length' is a number (value is

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-4-1 es5id: 15.4.4.20-4-1
description: Array.prototype.filter throws TypeError if callbackfn is undefined description: Array.prototype.filter throws TypeError if callbackfn is undefined
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-4-10 es5id: 15.4.4.20-4-10
description: > description: >
Array.prototype.filter - the exception is not thrown if exception Array.prototype.filter - the exception is not thrown if exception

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-4-11 es5id: 15.4.4.20-4-11
description: > description: >
Array.prototype.filter - the exception is not thrown if exception Array.prototype.filter - the exception is not thrown if exception

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-4-12 es5id: 15.4.4.20-4-12
description: Array.prototype.filter - 'callbackfn' is a function description: Array.prototype.filter - 'callbackfn' is a function
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-4-15 es5id: 15.4.4.20-4-15
description: > description: >
Array.prototype.filter - calling with no callbackfn is the same as Array.prototype.filter - calling with no callbackfn is the same as

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-4-2 es5id: 15.4.4.20-4-2
description: > description: >
Array.prototype.filter throws ReferenceError if callbackfn is Array.prototype.filter throws ReferenceError if callbackfn is

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-4-3 es5id: 15.4.4.20-4-3
description: Array.prototype.filter throws TypeError if callbackfn is null description: Array.prototype.filter throws TypeError if callbackfn is null
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-4-4 es5id: 15.4.4.20-4-4
description: Array.prototype.filter throws TypeError if callbackfn is boolean description: Array.prototype.filter throws TypeError if callbackfn is boolean
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-4-5 es5id: 15.4.4.20-4-5
description: Array.prototype.filter throws TypeError if callbackfn is number description: Array.prototype.filter throws TypeError if callbackfn is number
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-4-6 es5id: 15.4.4.20-4-6
description: Array.prototype.filter throws TypeError if callbackfn is string description: Array.prototype.filter throws TypeError if callbackfn is string
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-4-7 es5id: 15.4.4.20-4-7
description: > description: >
Array.prototype.filter throws TypeError if callbackfn is Object Array.prototype.filter throws TypeError if callbackfn is Object

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-4-8 es5id: 15.4.4.20-4-8
description: > description: >
Array.prototype.filter - side effects produced by step 2 are Array.prototype.filter - side effects produced by step 2 are

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-4-9 es5id: 15.4.4.20-4-9
description: > description: >
Array.prototype.filter - side effects produced by step 3 are Array.prototype.filter - side effects produced by step 3 are

View File

@ -2,13 +2,14 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-5-1-s es5id: 15.4.4.20-5-1-s
description: Array.prototype.filter - thisArg not passed to strict callbackfn description: Array.prototype.filter - thisArg not passed to strict callbackfn
flags: [noStrict] flags: [noStrict]
---*/ ---*/
var innerThisCorrect = false; var innerThisCorrect = false;
function callbackfn(val, idx, obj) { function callbackfn(val, idx, obj) {
"use strict"; "use strict";
innerThisCorrect = this===undefined; innerThisCorrect = this===undefined;

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-5-1 es5id: 15.4.4.20-5-1
description: Array.prototype.filter - thisArg is passed description: Array.prototype.filter - thisArg is passed
flags: [noStrict] flags: [noStrict]

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-5-10 es5id: 15.4.4.20-5-10
description: Array.prototype.filter - Array Object can be used as thisArg description: Array.prototype.filter - Array Object can be used as thisArg
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-5-11 es5id: 15.4.4.20-5-11
description: Array.prototype.filter - String Object can be used as thisArg description: Array.prototype.filter - String Object can be used as thisArg
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-5-12 es5id: 15.4.4.20-5-12
description: Array.prototype.filter - Boolean Object can be used as thisArg description: Array.prototype.filter - Boolean Object can be used as thisArg
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-5-13 es5id: 15.4.4.20-5-13
description: Array.prototype.filter - Number Object can be used as thisArg description: Array.prototype.filter - Number Object can be used as thisArg
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-5-14 es5id: 15.4.4.20-5-14
description: Array.prototype.filter - the Math object can be used as thisArg description: Array.prototype.filter - the Math object can be used as thisArg
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-5-15 es5id: 15.4.4.20-5-15
description: Array.prototype.filter - Date Object can be used as thisArg description: Array.prototype.filter - Date Object can be used as thisArg
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-5-16 es5id: 15.4.4.20-5-16
description: Array.prototype.filter - RegExp Object can be used as thisArg description: Array.prototype.filter - RegExp Object can be used as thisArg
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-5-17 es5id: 15.4.4.20-5-17
description: Array.prototype.filter - the JSON object can be used as thisArg description: Array.prototype.filter - the JSON object can be used as thisArg
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-5-18 es5id: 15.4.4.20-5-18
description: Array.prototype.filter - Error Object can be used as thisArg description: Array.prototype.filter - Error Object can be used as thisArg
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-5-19 es5id: 15.4.4.20-5-19
description: > description: >
Array.prototype.filter - the Arguments object can be used as Array.prototype.filter - the Arguments object can be used as

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-5-2 es5id: 15.4.4.20-5-2
description: Array.prototype.filter - thisArg is Object description: Array.prototype.filter - thisArg is Object
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-5-21 es5id: 15.4.4.20-5-21
description: Array.prototype.filter - the global object can be used as thisArg description: Array.prototype.filter - the global object can be used as thisArg
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-5-22 es5id: 15.4.4.20-5-22
description: Array.prototype.filter - boolean primitive can be used as thisArg description: Array.prototype.filter - boolean primitive can be used as thisArg
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-5-23 es5id: 15.4.4.20-5-23
description: Array.prototype.filter - number primitive can be used as thisArg description: Array.prototype.filter - number primitive can be used as thisArg
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-5-24 es5id: 15.4.4.20-5-24
description: Array.prototype.filter - string primitive can be used as thisArg description: Array.prototype.filter - string primitive can be used as thisArg
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-5-27 es5id: 15.4.4.20-5-27
description: > description: >
Array.prototype.filter - Array.isArray(arg) returns true when arg Array.prototype.filter - Array.isArray(arg) returns true when arg

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-5-28 es5id: 15.4.4.20-5-28
description: Array.prototype.filter - the returned array is instanceof Array description: Array.prototype.filter - the returned array is instanceof Array
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-5-29 es5id: 15.4.4.20-5-29
description: Array.prototype.filter - returns an array whose length is 0 description: Array.prototype.filter - returns an array whose length is 0
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-5-3 es5id: 15.4.4.20-5-3
description: Array.prototype.filter - thisArg is Array description: Array.prototype.filter - thisArg is Array
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-5-30 es5id: 15.4.4.20-5-30
description: Array.prototype.filter - thisArg not passed description: Array.prototype.filter - thisArg not passed
flags: [noStrict] flags: [noStrict]
@ -10,7 +11,7 @@ flags: [noStrict]
function innerObj() { function innerObj() {
this._15_4_4_20_5_30 = true; this._15_4_4_20_5_30 = true;
var _15_4_4_20_5_30 = false; var _15_4_4_20_5_30 = false;
function callbackfn(val, idx, obj) { function callbackfn(val, idx, obj) {
return this._15_4_4_20_5_30; return this._15_4_4_20_5_30;
} }

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-5-4 es5id: 15.4.4.20-5-4
description: > description: >
Array.prototype.filter - thisArg is object from object Array.prototype.filter - thisArg is object from object
@ -13,7 +14,7 @@ description: >
{ {
return this.res; return this.res;
} }
function foo(){} function foo(){}
foo.prototype.res = true; foo.prototype.res = true;
var f = new foo(); var f = new foo();

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-5-5 es5id: 15.4.4.20-5-5
description: Array.prototype.filter - thisArg is object from object template description: Array.prototype.filter - thisArg is object from object template
---*/ ---*/
@ -15,7 +16,7 @@ description: Array.prototype.filter - thisArg is object from object template
function foo(){} function foo(){}
var f = new foo(); var f = new foo();
f.res = true; f.res = true;
var srcArr = [1]; var srcArr = [1];
var resArr = srcArr.filter(callbackfn,f); var resArr = srcArr.filter(callbackfn,f);

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-5-6 es5id: 15.4.4.20-5-6
description: Array.prototype.filter - thisArg is function description: Array.prototype.filter - thisArg is function
---*/ ---*/
@ -14,7 +15,7 @@ description: Array.prototype.filter - thisArg is function
function foo(){} function foo(){}
foo.res = true; foo.res = true;
var srcArr = [1]; var srcArr = [1];
var resArr = srcArr.filter(callbackfn,foo); var resArr = srcArr.filter(callbackfn,foo);

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-5-7 es5id: 15.4.4.20-5-7
description: Array.prototype.filter - built-in functions can be used as thisArg description: Array.prototype.filter - built-in functions can be used as thisArg
---*/ ---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file. // This code is governed by the BSD license found in the LICENSE file.
/*--- /*---
esid: sec-array.prototype.filter
es5id: 15.4.4.20-5-9 es5id: 15.4.4.20-5-9
description: Array.prototype.filter - Function Object can be used as thisArg description: Array.prototype.filter - Function Object can be used as thisArg
---*/ ---*/

Some files were not shown because too many files have changed in this diff Show More