mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
add esid to array/prototype/reduce tests (#1117)
This commit is contained in:
parent
5ff6550197
commit
051bbb88ff
test/built-ins/Array/prototype/reduce
15.4.4.21-1-1.js15.4.4.21-1-10.js15.4.4.21-1-11.js15.4.4.21-1-12.js15.4.4.21-1-13.js15.4.4.21-1-14.js15.4.4.21-1-15.js15.4.4.21-1-2.js15.4.4.21-1-3.js15.4.4.21-1-4.js15.4.4.21-1-5.js15.4.4.21-1-6.js15.4.4.21-1-7.js15.4.4.21-1-8.js15.4.4.21-1-9.js15.4.4.21-10-1.js15.4.4.21-10-2.js15.4.4.21-10-3.js15.4.4.21-10-4.js15.4.4.21-10-5.js15.4.4.21-10-6.js15.4.4.21-10-7.js15.4.4.21-10-8.js15.4.4.21-2-1.js15.4.4.21-2-10.js15.4.4.21-2-11.js15.4.4.21-2-12.js15.4.4.21-2-13.js15.4.4.21-2-14.js15.4.4.21-2-17.js15.4.4.21-2-18.js15.4.4.21-2-19.js15.4.4.21-2-2.js15.4.4.21-2-3.js15.4.4.21-2-4.js15.4.4.21-2-5.js15.4.4.21-2-6.js15.4.4.21-2-7.js15.4.4.21-2-8.js15.4.4.21-2-9.js15.4.4.21-3-1.js15.4.4.21-3-10.js15.4.4.21-3-11.js15.4.4.21-3-12.js15.4.4.21-3-13.js15.4.4.21-3-14.js15.4.4.21-3-15.js15.4.4.21-3-16.js15.4.4.21-3-17.js15.4.4.21-3-18.js15.4.4.21-3-19.js15.4.4.21-3-2.js15.4.4.21-3-20.js15.4.4.21-3-21.js15.4.4.21-3-22.js15.4.4.21-3-23.js15.4.4.21-3-24.js15.4.4.21-3-25.js15.4.4.21-3-3.js15.4.4.21-3-4.js15.4.4.21-3-5.js15.4.4.21-3-6.js15.4.4.21-3-7.js15.4.4.21-3-9.js15.4.4.21-4-1.js15.4.4.21-4-10.js15.4.4.21-4-11.js15.4.4.21-4-12.js15.4.4.21-4-15.js15.4.4.21-4-2.js15.4.4.21-4-3.js15.4.4.21-4-4.js15.4.4.21-4-5.js15.4.4.21-4-6.js15.4.4.21-4-7.js15.4.4.21-4-8.js15.4.4.21-4-9.js15.4.4.21-5-1.js15.4.4.21-5-10.js15.4.4.21-5-11.js15.4.4.21-5-12.js15.4.4.21-5-13.js15.4.4.21-5-2.js15.4.4.21-5-3.js15.4.4.21-5-4.js15.4.4.21-5-5.js15.4.4.21-5-6.js15.4.4.21-5-7.js15.4.4.21-5-8.js15.4.4.21-5-9.js15.4.4.21-7-1.js15.4.4.21-7-10.js15.4.4.21-7-11.js15.4.4.21-7-2.js15.4.4.21-7-3.js15.4.4.21-7-4.js15.4.4.21-7-5.js15.4.4.21-7-6.js15.4.4.21-7-7.js15.4.4.21-7-8.js
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-1-1
|
||||
description: Array.prototype.reduce applied to undefined
|
||||
---*/
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-1-10
|
||||
description: Array.prototype.reduce applied to the Math object
|
||||
---*/
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-1-11
|
||||
description: Array.prototype.reduce applied to Date object
|
||||
---*/
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-1-12
|
||||
description: Array.prototype.reduce applied to RegExp object
|
||||
---*/
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-1-13
|
||||
description: Array.prototype.reduce applied to the JSON object
|
||||
---*/
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-1-14
|
||||
description: Array.prototype.reduce applied to Error object
|
||||
---*/
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-1-15
|
||||
description: Array.prototype.reduce applied to the Arguments object
|
||||
---*/
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-1-2
|
||||
description: Array.prototype.reduce applied to null
|
||||
---*/
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-1-3
|
||||
description: Array.prototype.reduce applied to boolean primitive
|
||||
---*/
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-1-4
|
||||
description: Array.prototype.reduce applied to Boolean object
|
||||
---*/
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-1-5
|
||||
description: Array.prototype.reduce applied to number primitive
|
||||
---*/
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-1-6
|
||||
description: Array.prototype.reduce applied to Number object
|
||||
---*/
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-1-7
|
||||
description: Array.prototype.reduce applied to string primitive
|
||||
---*/
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-1-8
|
||||
description: Array.prototype.reduce applied to String object
|
||||
---*/
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-1-9
|
||||
description: Array.prototype.reduce applied to Function object
|
||||
---*/
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-10-1
|
||||
description: >
|
||||
Array.prototype.reduce doesn't mutate the Array on which it is
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-10-2
|
||||
description: >
|
||||
Array.prototype.reduce reduces the array in ascending order of
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-10-3
|
||||
description: Array.prototype.reduce - subclassed array of length 1
|
||||
---*/
|
||||
@ -9,7 +10,7 @@ description: Array.prototype.reduce - subclassed array of length 1
|
||||
foo.prototype = [1];
|
||||
function foo() {}
|
||||
var f = new foo();
|
||||
|
||||
|
||||
function cb(){}
|
||||
|
||||
assert.sameValue(f.reduce(cb), 1, 'f.reduce(cb)');
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-10-4
|
||||
description: Array.prototype.reduce - subclassed array with length more than 1
|
||||
---*/
|
||||
@ -9,7 +10,7 @@ description: Array.prototype.reduce - subclassed array with length more than 1
|
||||
foo.prototype = new Array(1, 2, 3, 4);
|
||||
function foo() {}
|
||||
var f = new foo();
|
||||
|
||||
|
||||
function cb(prevVal, curVal, idx, obj){return prevVal + curVal;}
|
||||
|
||||
assert.sameValue(f.reduce(cb), 10, 'f.reduce(cb)');
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-10-5
|
||||
description: >
|
||||
Array.prototype.reduce reduces the array in ascending order of
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-10-6
|
||||
description: >
|
||||
Array.prototype.reduce - subclassed array when initialvalue
|
||||
@ -11,7 +12,7 @@ description: >
|
||||
foo.prototype = [1,2,3,4];
|
||||
function foo() {}
|
||||
var f = new foo();
|
||||
|
||||
|
||||
function cb(prevVal, curVal, idx, obj){return prevVal + curVal;}
|
||||
|
||||
assert.sameValue(f.reduce(cb,-1), 9, 'f.reduce(cb,-1)');
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-10-7
|
||||
description: >
|
||||
Array.prototype.reduce - subclassed array with length 1 and
|
||||
@ -11,7 +12,7 @@ description: >
|
||||
foo.prototype = [1];
|
||||
function foo() {}
|
||||
var f = new foo();
|
||||
|
||||
|
||||
function cb(prevVal, curVal, idx, obj){return prevVal + curVal;}
|
||||
|
||||
assert.sameValue(f.reduce(cb,-1), 0, 'f.reduce(cb,-1)');
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-10-8
|
||||
description: Array.prototype.reduce doesn't visit expandos
|
||||
---*/
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-2-1
|
||||
description: >
|
||||
Array.prototype.reduce - 'length' is own data property on an
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-2-10
|
||||
description: >
|
||||
Array.prototype.reduce applied to Array-like object, 'length' is
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-2-11
|
||||
description: >
|
||||
Array.prototype.reduce applied to Array-like object, 'length' is
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-2-12
|
||||
description: >
|
||||
Array.prototype.reduce - 'length' is own accessor property without
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-2-13
|
||||
description: >
|
||||
Array.prototype.reduce applied to Array-like object that 'length'
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-2-14
|
||||
description: >
|
||||
Array.prototype.reduce applied to the Array-like object that
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-2-17
|
||||
description: >
|
||||
Array.prototype.reduce applied to the Arguments object, which
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-2-18
|
||||
description: >
|
||||
Array.prototype.reduce applied to String object, which implements
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-2-19
|
||||
description: >
|
||||
Array.prototype.reduce applied to Function object, which
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-2-2
|
||||
description: Array.prototype.reduce - 'length' is own data property on an Array
|
||||
---*/
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-2-3
|
||||
description: >
|
||||
Array.prototype.reduce - 'length' is an own data property that
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-2-4
|
||||
description: >
|
||||
Array.prototype.reduce - 'length' is own data property that
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-2-5
|
||||
description: >
|
||||
Array.prototype.reduce applied to Array-like object, 'length' is
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-2-6
|
||||
description: >
|
||||
Array.prototype.reduce applied to Array-like object, 'length' is
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-2-7
|
||||
description: >
|
||||
Array.prototype.reduce applied to Array-like object, 'length' is
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-2-8
|
||||
description: >
|
||||
Array.prototype.reduce applied to Array-like object, 'length' is
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-2-9
|
||||
description: >
|
||||
Array.prototype.reduce applied to Array-like object, 'length' is
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-3-1
|
||||
description: Array.prototype.reduce - value of 'length' is undefined
|
||||
---*/
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-3-10
|
||||
description: >
|
||||
Array.prototype.reduce - value of 'length' is number primitive
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-3-11
|
||||
description: >
|
||||
Array.prototype.reduce - 'length' is a string containing a
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-3-12
|
||||
description: >
|
||||
Array.prototype.reduce - 'length' is a string containing a
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-3-13
|
||||
description: >
|
||||
Array.prototype.reduce - 'length' is a string containing a decimal
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-3-14
|
||||
description: Array.prototype.reduce - 'length' is a string containing -Infinity
|
||||
---*/
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-3-15
|
||||
description: >
|
||||
Array.prototype.reduce - 'length' is a string containing an
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-3-16
|
||||
description: >
|
||||
Array.prototype.reduce - 'length' is a string containing a hex
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-3-17
|
||||
description: >
|
||||
Array.prototype.reduce - 'length' is a string containing a number
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-3-18
|
||||
description: >
|
||||
Array.prototype.reduce - value of 'length' is a string that can't
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-3-19
|
||||
description: >
|
||||
Array.prototype.reduce - value of 'length' is an Object which has
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-3-2
|
||||
description: >
|
||||
Array.prototype.reduce - value of 'length' is a boolean (value is
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-3-20
|
||||
description: >
|
||||
Array.prototype.reduce - value of 'length' is an object which has
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-3-21
|
||||
description: >
|
||||
Array.prototype.reduce - 'length' is an object that has an own
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-3-22
|
||||
description: >
|
||||
Array.prototype.reduce throws TypeError exception - 'length' is an
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-3-23
|
||||
description: >
|
||||
Array.prototype.reduce uses inherited valueOf method - 'length' is
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-3-24
|
||||
description: >
|
||||
Array.prototype.reduce - value of 'length' is a positive
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-3-25
|
||||
description: >
|
||||
Array.prototype.reduce - value of 'length' is a negative
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-3-3
|
||||
description: Array.prototype.reduce - value of 'length' is a number (value is 0)
|
||||
---*/
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-3-4
|
||||
description: >
|
||||
Array.prototype.reduce - value of 'length' is a number (value is
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-3-5
|
||||
description: >
|
||||
Array.prototype.reduce - value of 'length' is a number (value is
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-3-6
|
||||
description: >
|
||||
Array.prototype.reduce - value of 'length' is a number (value is
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-3-7
|
||||
description: >
|
||||
Array.prototype.reduce - value of 'length' is a number (value is
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-3-9
|
||||
description: >
|
||||
Array.prototype.reduce - value of 'length' is a number (value is
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-4-1
|
||||
description: Array.prototype.reduce throws TypeError if callbackfn is undefined
|
||||
---*/
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-4-10
|
||||
description: >
|
||||
Array.prototype.reduce - the exception is not thrown if exception
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-4-11
|
||||
description: >
|
||||
Array.prototype.reduce - the exception is not thrown if exception
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-4-12
|
||||
description: Array.prototype.reduce - 'callbackfn' is a function
|
||||
---*/
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-4-15
|
||||
description: >
|
||||
Array.prototype.reduce - calling with no callbackfn is the same as
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-4-2
|
||||
description: >
|
||||
Array.prototype.reduce throws ReferenceError if callbackfn is
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-4-3
|
||||
description: Array.prototype.reduce throws TypeError if callbackfn is null
|
||||
---*/
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-4-4
|
||||
description: Array.prototype.reduce throws TypeError if callbackfn is boolean
|
||||
---*/
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-4-5
|
||||
description: Array.prototype.reduce throws TypeError if callbackfn is number
|
||||
---*/
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-4-6
|
||||
description: Array.prototype.reduce throws TypeError if callbackfn is string
|
||||
---*/
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-4-7
|
||||
description: >
|
||||
Array.prototype.reduce throws TypeError if callbackfn is Object
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-4-8
|
||||
description: >
|
||||
Array.prototype.reduce - side effects produced by step 2 are
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-4-9
|
||||
description: >
|
||||
Array.prototype.reduce - side effects produced by step 3 are
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-5-1
|
||||
description: >
|
||||
Array.prototype.reduce throws TypeError if 'length' is 0 (empty
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-5-10
|
||||
description: >
|
||||
Array.prototype.reduce - if exception occurs, it occurs after any
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-5-11
|
||||
description: >
|
||||
Array.prototype.reduce - if the exception occurs, it occurs after
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-5-12
|
||||
description: >
|
||||
Array.prototype.reduce - the exception is not thrown if exception
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-5-13
|
||||
description: >
|
||||
Array.prototype.reduce - the exception is not thrown if exception
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-5-2
|
||||
description: >
|
||||
Array.prototype.reduce throws TypeError if 'length' is 0
|
||||
@ -13,7 +14,7 @@ description: >
|
||||
function foo() {}
|
||||
var f = new foo();
|
||||
f.length = null;
|
||||
|
||||
|
||||
function cb(){}
|
||||
assert.throws(TypeError, function() {
|
||||
f.reduce(cb);
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-5-3
|
||||
description: >
|
||||
Array.prototype.reduce throws TypeError if 'length' is 0
|
||||
@ -13,7 +14,7 @@ description: >
|
||||
function foo() {}
|
||||
var f = new foo();
|
||||
f.length = false;
|
||||
|
||||
|
||||
function cb(){}
|
||||
assert.throws(TypeError, function() {
|
||||
f.reduce(cb);
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-5-4
|
||||
description: >
|
||||
Array.prototype.reduce throws TypeError if 'length' is 0
|
||||
@ -13,7 +14,7 @@ description: >
|
||||
function foo() {}
|
||||
var f = new foo();
|
||||
f.length = 0;
|
||||
|
||||
|
||||
function cb(){}
|
||||
assert.throws(TypeError, function() {
|
||||
f.reduce(cb);
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-5-5
|
||||
description: >
|
||||
Array.prototype.reduce throws TypeError if 'length' is 0
|
||||
@ -13,7 +14,7 @@ description: >
|
||||
function foo() {}
|
||||
var f = new foo();
|
||||
f.length = '0';
|
||||
|
||||
|
||||
function cb(){}
|
||||
assert.throws(TypeError, function() {
|
||||
f.reduce(cb);
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-5-6
|
||||
description: >
|
||||
Array.prototype.reduce throws TypeError if 'length' is 0
|
||||
@ -12,10 +13,10 @@ description: >
|
||||
foo.prototype = new Array(1, 2, 3);
|
||||
function foo() {}
|
||||
var f = new foo();
|
||||
|
||||
|
||||
var o = { valueOf: function () { return 0;}};
|
||||
f.length = o;
|
||||
|
||||
|
||||
function cb(){}
|
||||
assert.throws(TypeError, function() {
|
||||
f.reduce(cb);
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-5-7
|
||||
description: >
|
||||
Array.prototype.reduce throws TypeError 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
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-5-8
|
||||
description: >
|
||||
Array.prototype.reduce throws TypeError if 'length' is 0
|
||||
@ -11,9 +12,9 @@ description: >
|
||||
foo.prototype = new Array(1, 2, 3);
|
||||
function foo() {}
|
||||
var f = new foo();
|
||||
|
||||
|
||||
f.length = [];
|
||||
|
||||
|
||||
// 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
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-5-9
|
||||
description: >
|
||||
Array.prototype.reduce - 'initialValue' is returned if 'len' is 0
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-7-1
|
||||
description: >
|
||||
Array.prototype.reduce returns initialValue if 'length' is 0 and
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-7-10
|
||||
description: Array.prototype.reduce - 'initialValue' is present
|
||||
---*/
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-7-11
|
||||
description: Array.prototype.reduce - 'initialValue' is not present
|
||||
---*/
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-7-2
|
||||
description: >
|
||||
Array.prototype.reduce returns initialValue if 'length' is 0 and
|
||||
@ -13,6 +14,6 @@ description: >
|
||||
function foo() {}
|
||||
var f = new foo();
|
||||
f.length = null;
|
||||
|
||||
|
||||
function cb(){}
|
||||
assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)');
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-7-3
|
||||
description: >
|
||||
Array.prototype.reduce returns initialValue if 'length' is 0 and
|
||||
@ -13,6 +14,6 @@ description: >
|
||||
function foo() {}
|
||||
var f = new foo();
|
||||
f.length = false;
|
||||
|
||||
|
||||
function cb(){}
|
||||
assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)');
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-7-4
|
||||
description: >
|
||||
Array.prototype.reduce returns initialValue if 'length' is 0 and
|
||||
@ -13,6 +14,6 @@ description: >
|
||||
function foo() {}
|
||||
var f = new foo();
|
||||
f.length = 0;
|
||||
|
||||
|
||||
function cb(){}
|
||||
assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)');
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-7-5
|
||||
description: >
|
||||
Array.prototype.reduce returns initialValue if 'length' is 0 and
|
||||
@ -13,6 +14,6 @@ description: >
|
||||
function foo() {}
|
||||
var f = new foo();
|
||||
f.length = '0';
|
||||
|
||||
|
||||
function cb(){}
|
||||
assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)');
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-7-6
|
||||
description: >
|
||||
Array.prototype.reduce returns initialValue if 'length' is 0 and
|
||||
@ -12,9 +13,9 @@ description: >
|
||||
foo.prototype = new Array(1, 2, 3);
|
||||
function foo() {}
|
||||
var f = new foo();
|
||||
|
||||
|
||||
var o = { valueOf: function () { return 0;}};
|
||||
f.length = o;
|
||||
|
||||
|
||||
function cb(){}
|
||||
assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)');
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-7-7
|
||||
description: >
|
||||
Array.prototype.reduce returns initialValue if 'length' is 0 and
|
||||
@ -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
|
||||
|
@ -2,6 +2,7 @@
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.reduce
|
||||
es5id: 15.4.4.21-7-8
|
||||
description: >
|
||||
Array.prototype.reduce returns initialValue if 'length' is 0 and
|
||||
@ -12,9 +13,9 @@ description: >
|
||||
foo.prototype = new Array(1, 2, 3);
|
||||
function foo() {}
|
||||
var f = new foo();
|
||||
|
||||
|
||||
f.length = [];
|
||||
|
||||
|
||||
// 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
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user