mirror of
https://github.com/tc39/test262.git
synced 2025-07-23 14:04:51 +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.
|
// 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
|
es5id: 15.4.4.14-1-1
|
||||||
description: Array.prototype.indexOf applied to undefined throws a TypeError
|
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.
|
// 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
|
es5id: 15.4.4.14-1-10
|
||||||
description: Array.prototype.indexOf applied to the Math object
|
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.
|
// 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
|
es5id: 15.4.4.14-1-11
|
||||||
description: Array.prototype.indexOf applied to Date object
|
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.
|
// 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
|
es5id: 15.4.4.14-1-12
|
||||||
description: Array.prototype.indexOf applied to RegExp object
|
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.
|
// 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
|
es5id: 15.4.4.14-1-13
|
||||||
description: Array.prototype.indexOf applied to the JSON object
|
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.
|
// 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
|
es5id: 15.4.4.14-1-14
|
||||||
description: Array.prototype.indexOf applied to Error object
|
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.
|
// 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
|
es5id: 15.4.4.14-1-15
|
||||||
description: Array.prototype.indexOf applied to Arguments object
|
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.
|
// 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
|
es5id: 15.4.4.14-1-2
|
||||||
description: Array.prototype.indexOf applied to null throws a TypeError
|
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.
|
// 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
|
es5id: 15.4.4.14-1-3
|
||||||
description: Array.prototype.indexOf applied to boolean primitive
|
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.
|
// 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
|
es5id: 15.4.4.14-1-4
|
||||||
description: Array.prototype.indexOf applied to Boolean Object
|
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.
|
// 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
|
es5id: 15.4.4.14-1-5
|
||||||
description: Array.prototype.indexOf applied to number primitive
|
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.
|
// 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
|
es5id: 15.4.4.14-1-6
|
||||||
description: Array.prototype.indexOf applied to Number object
|
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.
|
// 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
|
es5id: 15.4.4.14-1-7
|
||||||
description: Array.prototype.indexOf applied to string primitive
|
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.
|
// 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
|
es5id: 15.4.4.14-1-8
|
||||||
description: Array.prototype.indexOf applied to String object
|
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.
|
// 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
|
es5id: 15.4.4.14-1-9
|
||||||
description: Array.prototype.indexOf applied to Function object
|
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.
|
// 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
|
es5id: 15.4.4.14-10-1
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf returns -1 for elements not present in
|
Array.prototype.indexOf returns -1 for elements not present in
|
||||||
@ -10,7 +11,7 @@ description: >
|
|||||||
|
|
||||||
var a = new Array();
|
var a = new Array();
|
||||||
a[100] = 1;
|
a[100] = 1;
|
||||||
a[99999] = "";
|
a[99999] = "";
|
||||||
a[10] = new Object();
|
a[10] = new Object();
|
||||||
a[5555] = 5.5;
|
a[5555] = 5.5;
|
||||||
a[123456] = "str";
|
a[123456] = "str";
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
|
esid: sec-array.prototype.indexof
|
||||||
es5id: 15.4.4.14-10-2
|
es5id: 15.4.4.14-10-2
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf returns -1 if 'length' is 0 and does not
|
Array.prototype.indexOf returns -1 if 'length' is 0 and does not
|
||||||
@ -12,9 +13,9 @@ description: >
|
|||||||
var f = {length: 0};
|
var f = {length: 0};
|
||||||
Object.defineProperty(f,"0",{get: function () {accessed = true; return 1;}});
|
Object.defineProperty(f,"0",{get: function () {accessed = true; return 1;}});
|
||||||
|
|
||||||
|
|
||||||
var i = Array.prototype.indexOf.call(f,1);
|
var i = Array.prototype.indexOf.call(f,1);
|
||||||
|
|
||||||
|
|
||||||
assert.sameValue(i, -1, 'i');
|
assert.sameValue(i, -1, 'i');
|
||||||
assert.sameValue(accessed, false, 'accessed');
|
assert.sameValue(accessed, false, 'accessed');
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
|
esid: sec-array.prototype.indexof
|
||||||
es5id: 15.4.4.14-2-1
|
es5id: 15.4.4.14-2-1
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - 'length' is own data property on an
|
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.
|
// 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
|
es5id: 15.4.4.14-2-10
|
||||||
description: Array.prototype.indexOf - 'length' is inherited accessor property
|
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.
|
// 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
|
es5id: 15.4.4.14-2-11
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - 'length' is own accessor property
|
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.
|
// 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
|
es5id: 15.4.4.14-2-12
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - 'length' is own accessor property
|
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.
|
// 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
|
es5id: 15.4.4.14-2-13
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - 'length' is inherited accessor property
|
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.
|
// 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
|
es5id: 15.4.4.14-2-14
|
||||||
description: Array.prototype.indexOf - 'length' is undefined property
|
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.
|
// 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
|
es5id: 15.4.4.14-2-17
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf applied to Arguments object which
|
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.
|
// 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
|
es5id: 15.4.4.14-2-18
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf applied to String object, which implements
|
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.
|
// 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
|
es5id: 15.4.4.14-2-19
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf applied to Function object which
|
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.
|
// 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
|
es5id: 15.4.4.14-2-2
|
||||||
description: Array.prototype.indexOf - 'length' is own data property on an Array
|
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 = {};
|
var targetObj = {};
|
||||||
|
|
||||||
Array.prototype[2] = targetObj;
|
Array.prototype[2] = targetObj;
|
||||||
|
|
||||||
|
|
||||||
assert.sameValue([0, targetObj].indexOf(targetObj), 1, '[0, targetObj].indexOf(targetObj)');
|
assert.sameValue([0, targetObj].indexOf(targetObj), 1, '[0, targetObj].indexOf(targetObj)');
|
||||||
assert.sameValue([0, 1].indexOf(targetObj), -1, '[0, 1].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.
|
// 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
|
es5id: 15.4.4.14-2-3
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - 'length' is own data property that
|
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.
|
// 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
|
es5id: 15.4.4.14-2-4
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - 'length' is own data property that
|
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.
|
// 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
|
es5id: 15.4.4.14-2-5
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - 'length' is own data property that
|
Array.prototype.indexOf - 'length' is own data property that
|
||||||
@ -20,7 +21,7 @@ description: >
|
|||||||
Con.prototype = proto;
|
Con.prototype = proto;
|
||||||
|
|
||||||
var child = new Con();
|
var child = new Con();
|
||||||
|
|
||||||
Object.defineProperty(child, "length", {
|
Object.defineProperty(child, "length", {
|
||||||
value: 2,
|
value: 2,
|
||||||
configurable: true
|
configurable: true
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
|
esid: sec-array.prototype.indexof
|
||||||
es5id: 15.4.4.14-2-6
|
es5id: 15.4.4.14-2-6
|
||||||
description: Array.prototype.indexOf - 'length' is an inherited data property
|
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.
|
// 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
|
es5id: 15.4.4.14-2-7
|
||||||
description: Array.prototype.indexOf - 'length' is own accessor property
|
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.
|
// 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
|
es5id: 15.4.4.14-2-8
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - 'length' is own accessor property that
|
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.
|
// 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
|
es5id: 15.4.4.14-2-9
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - 'length' is own accessor property that
|
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.
|
// 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
|
es5id: 15.4.4.14-3-1
|
||||||
description: Array.prototype.indexOf - value of 'length' is undefined
|
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.
|
// 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
|
es5id: 15.4.4.14-3-10
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - value of 'length' is number primitive
|
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.
|
// 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
|
es5id: 15.4.4.14-3-11
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - 'length' is a string containing a
|
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.
|
// 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
|
es5id: 15.4.4.14-3-12
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - 'length' is a string containing a
|
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.
|
// 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
|
es5id: 15.4.4.14-3-13
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - 'length' is a string containing a
|
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.
|
// 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
|
es5id: 15.4.4.14-3-14
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - 'length' is a string containing
|
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.
|
// 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
|
es5id: 15.4.4.14-3-15
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - 'length' is a string containing an
|
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.
|
// 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
|
es5id: 15.4.4.14-3-16
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - 'length' is a string containing a hex
|
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.
|
// 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
|
es5id: 15.4.4.14-3-17
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - 'length' is a string containing a number
|
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.
|
// 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
|
es5id: 15.4.4.14-3-18
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - value of 'length' is a string that can't
|
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.
|
// 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
|
es5id: 15.4.4.14-3-19
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - value of 'length' is an Object which has
|
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.
|
// 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
|
es5id: 15.4.4.14-3-2
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf return -1 when 'length' is a boolean
|
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.
|
// 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
|
es5id: 15.4.4.14-3-20
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - value of 'length' is an Object which has
|
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.
|
// 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
|
es5id: 15.4.4.14-3-21
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - 'length' is an object that has an own
|
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.
|
// 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
|
es5id: 15.4.4.14-3-22
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf throws TypeError exception when 'length'
|
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.
|
// 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
|
es5id: 15.4.4.14-3-23
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf uses inherited valueOf method when
|
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.
|
// 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
|
es5id: 15.4.4.14-3-24
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - value of 'length' is a positive
|
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.
|
// 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
|
es5id: 15.4.4.14-3-25
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - value of 'length' is a negative
|
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.
|
// 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
|
es5id: 15.4.4.14-3-28
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - value of 'length' is boundary value
|
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.
|
// 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
|
es5id: 15.4.4.14-3-29
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - value of 'length' is boundary value
|
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.
|
// 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
|
es5id: 15.4.4.14-3-3
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - value of 'length' is a number (value is
|
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.
|
// 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
|
es5id: 15.4.4.14-3-4
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - value of 'length' is a number (value is
|
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.
|
// 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
|
es5id: 15.4.4.14-3-5
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - value of 'length' is a number (value is
|
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.
|
// 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
|
es5id: 15.4.4.14-3-6
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - value of 'length' is a number (value is
|
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.
|
// 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
|
es5id: 15.4.4.14-3-7
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - value of 'length' is a number (value is
|
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.
|
// 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
|
es5id: 15.4.4.14-3-8
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - value of 'length' is a number (value is
|
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.
|
// 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
|
es5id: 15.4.4.14-3-9
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - value of 'length' is a number (value is
|
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.
|
// 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
|
es5id: 15.4.4.14-4-1
|
||||||
description: Array.prototype.indexOf returns -1 if 'length' is 0 (empty array)
|
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.
|
// 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
|
es5id: 15.4.4.14-4-10
|
||||||
description: Array.prototype.indexOf - 'length' is a number of value -6e-1
|
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.
|
// 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
|
es5id: 15.4.4.14-4-11
|
||||||
description: Array.prototype.indexOf - 'length' is an empty string
|
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.
|
// 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
|
es5id: 15.4.4.14-4-2
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf returns -1 if 'length' is 0 ( length
|
Array.prototype.indexOf returns -1 if 'length' is 0 ( length
|
||||||
@ -9,6 +10,6 @@ description: >
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
var i = Array.prototype.indexOf.call({length: null}, 1);
|
var i = Array.prototype.indexOf.call({length: null}, 1);
|
||||||
|
|
||||||
|
|
||||||
assert.sameValue(i, -1, 'i');
|
assert.sameValue(i, -1, 'i');
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
|
esid: sec-array.prototype.indexof
|
||||||
es5id: 15.4.4.14-4-3
|
es5id: 15.4.4.14-4-3
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf returns -1 if 'length' is 0 (length
|
Array.prototype.indexOf returns -1 if 'length' is 0 (length
|
||||||
@ -9,6 +10,6 @@ description: >
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
var i = Array.prototype.indexOf.call({length: false}, 1);
|
var i = Array.prototype.indexOf.call({length: false}, 1);
|
||||||
|
|
||||||
|
|
||||||
assert.sameValue(i, -1, 'i');
|
assert.sameValue(i, -1, 'i');
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
|
esid: sec-array.prototype.indexof
|
||||||
es5id: 15.4.4.14-4-4
|
es5id: 15.4.4.14-4-4
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf returns -1 if 'length' is 0 (generic
|
Array.prototype.indexOf returns -1 if 'length' is 0 (generic
|
||||||
@ -9,6 +10,6 @@ description: >
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
var i = Array.prototype.lastIndexOf.call({length: 0}, 1);
|
var i = Array.prototype.lastIndexOf.call({length: 0}, 1);
|
||||||
|
|
||||||
|
|
||||||
assert.sameValue(i, -1, 'i');
|
assert.sameValue(i, -1, 'i');
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
|
esid: sec-array.prototype.indexof
|
||||||
es5id: 15.4.4.14-4-5
|
es5id: 15.4.4.14-4-5
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf returns -1 if 'length' is 0 ( length
|
Array.prototype.indexOf returns -1 if 'length' is 0 ( length
|
||||||
@ -9,6 +10,6 @@ description: >
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
var i = Array.prototype.indexOf.call({length: '0'}, 1);
|
var i = Array.prototype.indexOf.call({length: '0'}, 1);
|
||||||
|
|
||||||
|
|
||||||
assert.sameValue(i, -1, 'i');
|
assert.sameValue(i, -1, 'i');
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
|
esid: sec-array.prototype.indexof
|
||||||
es5id: 15.4.4.14-4-6
|
es5id: 15.4.4.14-4-6
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf returns -1 if 'length' is 0 (subclassed
|
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);
|
var i = Array.prototype.indexOf.call({length: { valueOf: function () { return 0;}}}, 1);
|
||||||
|
|
||||||
|
|
||||||
assert.sameValue(i, -1, 'i');
|
assert.sameValue(i, -1, 'i');
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
|
esid: sec-array.prototype.indexof
|
||||||
es5id: 15.4.4.14-4-7
|
es5id: 15.4.4.14-4-7
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf returns -1 if 'length' is 0 ( length is
|
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
|
// to a number by calling its toString() method and converting the
|
||||||
// resulting string to a number.
|
// resulting string to a number.
|
||||||
var i = Array.prototype.indexOf.call({length: { toString: function () { return '0';}}}, 1);
|
var i = Array.prototype.indexOf.call({length: { toString: function () { return '0';}}}, 1);
|
||||||
|
|
||||||
|
|
||||||
assert.sameValue(i, -1, 'i');
|
assert.sameValue(i, -1, 'i');
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
|
esid: sec-array.prototype.indexof
|
||||||
es5id: 15.4.4.14-4-8
|
es5id: 15.4.4.14-4-8
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf returns -1 if 'length' is 0 (length is an
|
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,
|
// 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.
|
// or if its one element is not a number, the array converts to NaN.
|
||||||
var i = Array.prototype.indexOf.call({length: [ ]}, 1);
|
var i = Array.prototype.indexOf.call({length: [ ]}, 1);
|
||||||
|
|
||||||
|
|
||||||
assert.sameValue(i, -1, 'i');
|
assert.sameValue(i, -1, 'i');
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
|
esid: sec-array.prototype.indexof
|
||||||
es5id: 15.4.4.14-4-9
|
es5id: 15.4.4.14-4-9
|
||||||
description: Array.prototype.indexOf - 'length' is a number of value 0.1
|
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.
|
// 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
|
es5id: 15.4.4.14-5-1
|
||||||
description: Array.prototype.indexOf when fromIndex is string
|
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.
|
// 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
|
es5id: 15.4.4.14-5-10
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - value of 'fromIndex' is a number (value
|
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.
|
// 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
|
es5id: 15.4.4.14-5-11
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - value of 'fromIndex' is a number (value
|
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.
|
// 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
|
es5id: 15.4.4.14-5-12
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - value of 'fromIndex' is a number (value
|
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.
|
// 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
|
es5id: 15.4.4.14-5-13
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - value of 'fromIndex' is a number (value
|
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.
|
// 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
|
es5id: 15.4.4.14-5-14
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - value of 'fromIndex' is a number (value
|
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.
|
// 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
|
es5id: 15.4.4.14-5-15
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - value of 'fromIndex' is a string
|
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.
|
// 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
|
es5id: 15.4.4.14-5-16
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - value of 'fromIndex' is a string
|
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.
|
// 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
|
es5id: 15.4.4.14-5-17
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - value of 'fromIndex' is a string
|
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.
|
// 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
|
es5id: 15.4.4.14-5-18
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - value of 'fromIndex' is a string
|
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.
|
// 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
|
es5id: 15.4.4.14-5-19
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - value of 'fromIndex' is a string
|
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.
|
// 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
|
es5id: 15.4.4.14-5-2
|
||||||
description: Array.prototype.indexOf when fromIndex is floating point number
|
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.
|
// 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
|
es5id: 15.4.4.14-5-20
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - value of 'fromIndex' which is a string
|
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.
|
// 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
|
es5id: 15.4.4.14-5-21
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - value of 'fromIndex' is an Object, which
|
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.
|
// 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
|
es5id: 15.4.4.14-5-22
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - value of 'fromIndex' is an Object, which
|
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.
|
// 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
|
es5id: 15.4.4.14-5-23
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - value of 'fromIndex' is an object that
|
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.
|
// 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
|
es5id: 15.4.4.14-5-24
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf throws TypeError exception when value of
|
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.
|
// 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
|
es5id: 15.4.4.14-5-25
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf uses inherited valueOf method when value
|
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.
|
// 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
|
es5id: 15.4.4.14-5-26
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - side effects produced by step 2 are
|
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.
|
// 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
|
es5id: 15.4.4.14-5-27
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - side effects produced by step 3 are
|
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.
|
// 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
|
es5id: 15.4.4.14-5-28
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - side effects produced by step 1 are
|
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.
|
// 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
|
es5id: 15.4.4.14-5-29
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - side effects produced by step 2 are
|
Array.prototype.indexOf - side effects produced by step 2 are
|
||||||
@ -9,7 +10,7 @@ description: >
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
var stepFiveOccurs = false;
|
var stepFiveOccurs = false;
|
||||||
|
|
||||||
var obj = {};
|
var obj = {};
|
||||||
Object.defineProperty(obj, "length", {
|
Object.defineProperty(obj, "length", {
|
||||||
get: function () {
|
get: function () {
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
|
esid: sec-array.prototype.indexof
|
||||||
es5id: 15.4.4.14-5-3
|
es5id: 15.4.4.14-5-3
|
||||||
description: Array.prototype.indexOf when fromIndex is boolean
|
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.
|
// 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
|
es5id: 15.4.4.14-5-30
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - side effects produced by step 3 are
|
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.
|
// 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
|
es5id: 15.4.4.14-5-31
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - 'fromIndex' is a positive non-integer,
|
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.
|
// 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
|
es5id: 15.4.4.14-5-32
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf - 'fromIndex' is a negative non-integer,
|
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.
|
// 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
|
es5id: 15.4.4.14-5-33
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.indexOf match on the first element, a middle
|
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.
|
// 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
|
es5id: 15.4.4.14-5-4
|
||||||
description: Array.prototype.indexOf returns 0 if fromIndex is 'undefined'
|
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