add esid to array/prototype/indexOf (#1110)

This commit is contained in:
Sue Lockwood 2017-06-30 07:42:06 -07:00 committed by Leo Balter
parent 4cfa5a4206
commit 54e6302219
189 changed files with 214 additions and 25 deletions

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-1-1
description: Array.prototype.indexOf 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.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-1-10
description: Array.prototype.indexOf applied to the Math object
---*/

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-1-2
description: Array.prototype.indexOf 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.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-1-3
description: Array.prototype.indexOf applied to boolean primitive
---*/

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-10-1
description: >
Array.prototype.indexOf returns -1 for elements not present in
@ -10,7 +11,7 @@ description: >
var a = new Array();
a[100] = 1;
a[99999] = "";
a[99999] = "";
a[10] = new Object();
a[5555] = 5.5;
a[123456] = "str";

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-10-2
description: >
Array.prototype.indexOf returns -1 if 'length' is 0 and does not
@ -12,9 +13,9 @@ description: >
var f = {length: 0};
Object.defineProperty(f,"0",{get: function () {accessed = true; return 1;}});
var i = Array.prototype.indexOf.call(f,1);
assert.sameValue(i, -1, 'i');
assert.sameValue(accessed, false, 'accessed');

View File

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

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-2-10
description: Array.prototype.indexOf - 'length' is inherited accessor property
---*/

View File

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

View File

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

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-2-13
description: >
Array.prototype.indexOf - 'length' is inherited accessor property

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-2-14
description: Array.prototype.indexOf - 'length' is undefined property
---*/

View File

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

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-2-18
description: >
Array.prototype.indexOf 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.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-2-19
description: >
Array.prototype.indexOf applied to Function object which

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-2-2
description: Array.prototype.indexOf - 'length' is own data property on an Array
---*/
@ -9,7 +10,7 @@ description: Array.prototype.indexOf - 'length' is own data property on an Array
var targetObj = {};
Array.prototype[2] = targetObj;
assert.sameValue([0, targetObj].indexOf(targetObj), 1, '[0, targetObj].indexOf(targetObj)');
assert.sameValue([0, 1].indexOf(targetObj), -1, '[0, 1].indexOf(targetObj)');

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-2-3
description: >
Array.prototype.indexOf - '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.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-2-4
description: >
Array.prototype.indexOf - '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.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-2-5
description: >
Array.prototype.indexOf - 'length' is own data property that
@ -20,7 +21,7 @@ description: >
Con.prototype = proto;
var child = new Con();
Object.defineProperty(child, "length", {
value: 2,
configurable: true

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-3-11
description: >
Array.prototype.indexOf - '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.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-3-12
description: >
Array.prototype.indexOf - '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.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-3-13
description: >
Array.prototype.indexOf - '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.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-3-14
description: >
Array.prototype.indexOf - 'length' is a string containing

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-3-15
description: >
Array.prototype.indexOf - '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.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-3-16
description: >
Array.prototype.indexOf - '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.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-3-17
description: >
Array.prototype.indexOf - '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.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-3-18
description: >
Array.prototype.indexOf - 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.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-3-19
description: >
Array.prototype.indexOf - 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.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-3-2
description: >
Array.prototype.indexOf return -1 when 'length' is a boolean

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-3-20
description: >
Array.prototype.indexOf - 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.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-3-21
description: >
Array.prototype.indexOf - '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.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-3-22
description: >
Array.prototype.indexOf throws TypeError exception when 'length'

View File

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

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-3-24
description: >
Array.prototype.indexOf - 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.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-3-25
description: >
Array.prototype.indexOf - 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.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-3-28
description: >
Array.prototype.indexOf - value of 'length' is boundary value

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-3-29
description: >
Array.prototype.indexOf - value of 'length' is boundary value

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-3-3
description: >
Array.prototype.indexOf - 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.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-3-4
description: >
Array.prototype.indexOf - 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.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-3-5
description: >
Array.prototype.indexOf - 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.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-3-6
description: >
Array.prototype.indexOf - 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.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-3-7
description: >
Array.prototype.indexOf - 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.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-3-8
description: >
Array.prototype.indexOf - 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.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-3-9
description: >
Array.prototype.indexOf - 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.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-4-1
description: Array.prototype.indexOf returns -1 if 'length' is 0 (empty array)
---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-4-10
description: Array.prototype.indexOf - 'length' is a number of value -6e-1
---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-4-11
description: Array.prototype.indexOf - 'length' is an empty string
---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-4-2
description: >
Array.prototype.indexOf returns -1 if 'length' is 0 ( length
@ -9,6 +10,6 @@ description: >
---*/
var i = Array.prototype.indexOf.call({length: null}, 1);
assert.sameValue(i, -1, 'i');

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-4-3
description: >
Array.prototype.indexOf returns -1 if 'length' is 0 (length
@ -9,6 +10,6 @@ description: >
---*/
var i = Array.prototype.indexOf.call({length: false}, 1);
assert.sameValue(i, -1, 'i');

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-4-4
description: >
Array.prototype.indexOf returns -1 if 'length' is 0 (generic
@ -9,6 +10,6 @@ description: >
---*/
var i = Array.prototype.lastIndexOf.call({length: 0}, 1);
assert.sameValue(i, -1, 'i');

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-4-5
description: >
Array.prototype.indexOf returns -1 if 'length' is 0 ( length
@ -9,6 +10,6 @@ description: >
---*/
var i = Array.prototype.indexOf.call({length: '0'}, 1);
assert.sameValue(i, -1, 'i');

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-4-6
description: >
Array.prototype.indexOf returns -1 if 'length' is 0 (subclassed
@ -9,6 +10,6 @@ description: >
---*/
var i = Array.prototype.indexOf.call({length: { valueOf: function () { return 0;}}}, 1);
assert.sameValue(i, -1, 'i');

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-4-7
description: >
Array.prototype.indexOf returns -1 if 'length' is 0 ( length is
@ -14,6 +15,6 @@ description: >
// to a number by calling its toString() method and converting the
// resulting string to a number.
var i = Array.prototype.indexOf.call({length: { toString: function () { return '0';}}}, 1);
assert.sameValue(i, -1, 'i');

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-4-8
description: >
Array.prototype.indexOf returns -1 if 'length' is 0 (length is an
@ -22,6 +23,6 @@ description: >
// then converted back to n itself. If an array contains more than one element,
// or if its one element is not a number, the array converts to NaN.
var i = Array.prototype.indexOf.call({length: [ ]}, 1);
assert.sameValue(i, -1, 'i');

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-4-9
description: Array.prototype.indexOf - 'length' is a number of value 0.1
---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-5-1
description: Array.prototype.indexOf when fromIndex is string
---*/

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-5-15
description: >
Array.prototype.indexOf - value of 'fromIndex' is a string

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-5-16
description: >
Array.prototype.indexOf - value of 'fromIndex' is a string

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-5-17
description: >
Array.prototype.indexOf - value of 'fromIndex' is a string

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-5-18
description: >
Array.prototype.indexOf - value of 'fromIndex' is a string

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-5-19
description: >
Array.prototype.indexOf - value of 'fromIndex' is a string

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-5-2
description: Array.prototype.indexOf when fromIndex is floating point number
---*/

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-5-20
description: >
Array.prototype.indexOf - value of 'fromIndex' which is a string

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-5-21
description: >
Array.prototype.indexOf - value of 'fromIndex' is an Object, which

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-5-22
description: >
Array.prototype.indexOf - value of 'fromIndex' is an Object, which

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-5-23
description: >
Array.prototype.indexOf - value of 'fromIndex' is an object that

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-5-24
description: >
Array.prototype.indexOf throws TypeError exception when value of

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-5-25
description: >
Array.prototype.indexOf uses inherited valueOf method when value

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-5-26
description: >
Array.prototype.indexOf - 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.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-5-27
description: >
Array.prototype.indexOf - side effects produced by step 3 are

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-5-28
description: >
Array.prototype.indexOf - side effects produced by step 1 are

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-5-29
description: >
Array.prototype.indexOf - side effects produced by step 2 are
@ -9,7 +10,7 @@ description: >
---*/
var stepFiveOccurs = false;
var obj = {};
Object.defineProperty(obj, "length", {
get: function () {

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-5-3
description: Array.prototype.indexOf when fromIndex is boolean
---*/

View File

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

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-5-31
description: >
Array.prototype.indexOf - 'fromIndex' is a positive non-integer,

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-5-32
description: >
Array.prototype.indexOf - 'fromIndex' is a negative non-integer,

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-5-33
description: >
Array.prototype.indexOf match on the first element, a middle

View File

@ -2,6 +2,7 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-array.prototype.indexof
es5id: 15.4.4.14-5-4
description: Array.prototype.indexOf returns 0 if fromIndex is 'undefined'
---*/

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