mirror of
https://github.com/tc39/test262.git
synced 2025-05-21 15:20:29 +02:00
add esid to array/prototype/indexOf (#1110)
This commit is contained in:
parent
4cfa5a4206
commit
54e6302219
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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";
|
||||
|
@ -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');
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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)');
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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'
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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');
|
||||
|
@ -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');
|
||||
|
@ -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');
|
||||
|
@ -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');
|
||||
|
@ -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');
|
||||
|
@ -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');
|
||||
|
@ -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');
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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 () {
|
||||
|
@ -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
|
||||
---*/
|
||||
|
@ -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
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
@ -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
Loading…
x
Reference in New Issue
Block a user