mirror of https://github.com/tc39/test262.git
add esid to array/prototype/lastIndexOf tests (#1113)
This commit is contained in:
parent
7457fe6608
commit
d22b84173e
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.lastindexof
|
||||
es5id: 15.4.4.15-1-1
|
||||
description: Array.prototype.lastIndexOf 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.lastindexof
|
||||
es5id: 15.4.4.15-1-10
|
||||
description: Array.prototype.lastIndexOf 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.lastindexof
|
||||
es5id: 15.4.4.15-1-11
|
||||
description: Array.prototype.lastIndexOf 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.lastindexof
|
||||
es5id: 15.4.4.15-1-12
|
||||
description: Array.prototype.lastIndexOf 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.lastindexof
|
||||
es5id: 15.4.4.15-1-13
|
||||
description: Array.prototype.lastIndexOf 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.lastindexof
|
||||
es5id: 15.4.4.15-1-14
|
||||
description: Array.prototype.lastIndexOf 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.lastindexof
|
||||
es5id: 15.4.4.15-1-15
|
||||
description: Array.prototype.lastIndexOf applied to the Arguments object
|
||||
---*/
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.lastindexof
|
||||
es5id: 15.4.4.15-1-2
|
||||
description: Array.prototype.lastIndexOf 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.lastindexof
|
||||
es5id: 15.4.4.15-1-3
|
||||
description: Array.prototype.lastIndexOf 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.lastindexof
|
||||
es5id: 15.4.4.15-1-4
|
||||
description: Array.prototype.lastIndexOf 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.lastindexof
|
||||
es5id: 15.4.4.15-1-5
|
||||
description: Array.prototype.lastIndexOf 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.lastindexof
|
||||
es5id: 15.4.4.15-1-6
|
||||
description: Array.prototype.lastIndexOf 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.lastindexof
|
||||
es5id: 15.4.4.15-1-7
|
||||
description: Array.prototype.lastIndexOf 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.lastindexof
|
||||
es5id: 15.4.4.15-1-8
|
||||
description: Array.prototype.lastIndexOf 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.lastindexof
|
||||
es5id: 15.4.4.15-1-9
|
||||
description: Array.prototype.lastIndexOf 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.lastindexof
|
||||
es5id: 15.4.4.15-2-1
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - '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.lastindexof
|
||||
es5id: 15.4.4.15-2-10
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - 'length' is inherited accessor
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.lastindexof
|
||||
es5id: 15.4.4.15-2-11
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - '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.lastindexof
|
||||
es5id: 15.4.4.15-2-12
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - '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.lastindexof
|
||||
es5id: 15.4.4.15-2-13
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - 'length' is inherited accessor
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.lastindexof
|
||||
es5id: 15.4.4.15-2-14
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - 'length' is undefined property on an
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.lastindexof
|
||||
es5id: 15.4.4.15-2-17
|
||||
description: >
|
||||
Array.prototype.lastIndexOf 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.lastindexof
|
||||
es5id: 15.4.4.15-2-18
|
||||
description: >
|
||||
Array.prototype.lastIndexOf applied to String object which
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.lastindexof
|
||||
es5id: 15.4.4.15-2-19
|
||||
description: >
|
||||
Array.prototype.lastIndexOf applied to String object which
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.lastindexof
|
||||
es5id: 15.4.4.15-2-2
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - '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.lastindexof
|
||||
es5id: 15.4.4.15-2-3
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - '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.lastindexof
|
||||
es5id: 15.4.4.15-2-4
|
||||
description: >
|
||||
Array.prototype.lastIndexOf when 'length' is own data property
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.lastindexof
|
||||
es5id: 15.4.4.15-2-5
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - '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.lastindexof
|
||||
es5id: 15.4.4.15-2-6
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - 'length' is an inherited data
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.lastindexof
|
||||
es5id: 15.4.4.15-2-7
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - 'length' is own accessor property on
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.lastindexof
|
||||
es5id: 15.4.4.15-2-8
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - '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.lastindexof
|
||||
es5id: 15.4.4.15-2-9
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - '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.lastindexof
|
||||
es5id: 15.4.4.15-3-1
|
||||
description: Array.prototype.lastIndexOf - 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.lastindexof
|
||||
es5id: 15.4.4.15-3-10
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - value of 'length' 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.lastindexof
|
||||
es5id: 15.4.4.15-3-11
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - value of 'length' is a string
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.lastindexof
|
||||
es5id: 15.4.4.15-3-12
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - value of 'length' is a string
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.lastindexof
|
||||
es5id: 15.4.4.15-3-13
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - value of 'length' is a string
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.lastindexof
|
||||
es5id: 15.4.4.15-3-14
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - value of 'length' is a string
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.lastindexof
|
||||
es5id: 15.4.4.15-3-15
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - value of 'length' is a string
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.lastindexof
|
||||
es5id: 15.4.4.15-3-16
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - value of 'length' is a string which
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.lastindexof
|
||||
es5id: 15.4.4.15-3-17
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - value of 'length' is a string
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.lastindexof
|
||||
es5id: 15.4.4.15-3-18
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - value of 'length' is a string that
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.lastindexof
|
||||
es5id: 15.4.4.15-3-19
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - value of 'length' 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.lastindexof
|
||||
es5id: 15.4.4.15-3-2
|
||||
description: >
|
||||
Array.prototype.lastIndexOf return -1 when value of 'length' is a
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.lastindexof
|
||||
es5id: 15.4.4.15-3-20
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - value of 'length' 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.lastindexof
|
||||
es5id: 15.4.4.15-3-21
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - 'length' is an object that has an
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.lastindexof
|
||||
es5id: 15.4.4.15-3-22
|
||||
description: >
|
||||
Array.prototype.lastIndexOf throws TypeError exception when
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.lastindexof
|
||||
es5id: 15.4.4.15-3-23
|
||||
description: >
|
||||
Array.prototype.lastIndexOf 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.lastindexof
|
||||
es5id: 15.4.4.15-3-24
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - 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.lastindexof
|
||||
es5id: 15.4.4.15-3-25
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - 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.lastindexof
|
||||
es5id: 15.4.4.15-3-28
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - 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.lastindexof
|
||||
es5id: 15.4.4.15-3-3
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - value of 'length' 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.lastindexof
|
||||
es5id: 15.4.4.15-3-4
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - value of 'length' 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.lastindexof
|
||||
es5id: 15.4.4.15-3-5
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - value of 'length' 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.lastindexof
|
||||
es5id: 15.4.4.15-3-6
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - value of 'length' 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.lastindexof
|
||||
es5id: 15.4.4.15-3-7
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - value of 'length' 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.lastindexof
|
||||
es5id: 15.4.4.15-3-9
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - value of 'length' 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.lastindexof
|
||||
es5id: 15.4.4.15-4-1
|
||||
description: >
|
||||
Array.prototype.lastIndexOf returns -1 if 'length' is 0 (empty
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.lastindexof
|
||||
es5id: 15.4.4.15-4-10
|
||||
description: Array.prototype.lastIndexOf - '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.lastindexof
|
||||
es5id: 15.4.4.15-4-11
|
||||
description: Array.prototype.lastIndexOf - '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.lastindexof
|
||||
es5id: 15.4.4.15-4-2
|
||||
description: >
|
||||
Array.prototype.lastIndexOf returns -1 if 'length' is 0 ( length
|
||||
|
@ -9,6 +10,6 @@ description: >
|
|||
---*/
|
||||
|
||||
var i = Array.prototype.lastIndexOf.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.lastindexof
|
||||
es5id: 15.4.4.15-4-3
|
||||
description: >
|
||||
Array.prototype.lastIndexOf returns -1 if 'length' is 0 (length
|
||||
|
@ -9,6 +10,6 @@ description: >
|
|||
---*/
|
||||
|
||||
var i = Array.prototype.lastIndexOf.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.lastindexof
|
||||
es5id: 15.4.4.15-4-4
|
||||
description: >
|
||||
Array.prototype.lastIndexOf returns -1 if 'length' is 0 (generic
|
||||
|
@ -12,8 +13,8 @@ description: >
|
|||
function foo() {}
|
||||
var f = new foo();
|
||||
f.length = 0;
|
||||
|
||||
|
||||
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.lastindexof
|
||||
es5id: 15.4.4.15-4-5
|
||||
description: >
|
||||
Array.prototype.lastIndexOf returns -1 if 'length' is 0 ( length
|
||||
|
@ -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.lastindexof
|
||||
es5id: 15.4.4.15-4-6
|
||||
description: >
|
||||
Array.prototype.lastIndexOf returns -1 if 'length' is 0
|
||||
|
@ -9,6 +10,6 @@ description: >
|
|||
---*/
|
||||
|
||||
var i = Array.prototype.lastIndexOf.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.lastindexof
|
||||
es5id: 15.4.4.15-4-7
|
||||
description: >
|
||||
Array.prototype.lastIndexOf returns -1 if 'length' is 0 ( length
|
||||
|
@ -11,16 +12,16 @@ description: >
|
|||
foo.prototype = new Array(1, 2, 3);
|
||||
function foo() {}
|
||||
var f = new foo();
|
||||
|
||||
|
||||
var o = { toString: function () { return '0';}};
|
||||
f.length = o;
|
||||
|
||||
|
||||
// objects inherit the default valueOf method of the Object object;
|
||||
// that simply returns the itself. Since the default valueOf() method
|
||||
// does not return a primitive value, ES next tries to convert the object
|
||||
// to a number by calling its toString() method and converting the
|
||||
// resulting string to a number.
|
||||
var i = Array.prototype.lastIndexOf.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.lastindexof
|
||||
es5id: 15.4.4.15-4-8
|
||||
description: >
|
||||
Array.prototype.lastIndexOf returns -1 if 'length' is 0 (length is
|
||||
|
@ -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.lastIndexOf.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.lastindexof
|
||||
es5id: 15.4.4.15-4-9
|
||||
description: Array.prototype.lastIndexOf - '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.lastindexof
|
||||
es5id: 15.4.4.15-5-1
|
||||
description: Array.prototype.lastIndexOf 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.lastindexof
|
||||
es5id: 15.4.4.15-5-10
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - value of 'fromIndex' is a number
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.lastindexof
|
||||
es5id: 15.4.4.15-5-11
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - value of 'fromIndex' is a number
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.lastindexof
|
||||
es5id: 15.4.4.15-5-12
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - value of 'fromIndex' is a number
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.lastindexof
|
||||
es5id: 15.4.4.15-5-13
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - value of 'fromIndex' is a number
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.lastindexof
|
||||
es5id: 15.4.4.15-5-14
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - value of 'fromIndex' is a number
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.lastindexof
|
||||
es5id: 15.4.4.15-5-15
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - 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.lastindexof
|
||||
es5id: 15.4.4.15-5-16
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - 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.lastindexof
|
||||
es5id: 15.4.4.15-5-17
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - 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.lastindexof
|
||||
es5id: 15.4.4.15-5-18
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - 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.lastindexof
|
||||
es5id: 15.4.4.15-5-19
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - 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.lastindexof
|
||||
es5id: 15.4.4.15-5-2
|
||||
description: Array.prototype.lastIndexOf 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.lastindexof
|
||||
es5id: 15.4.4.15-5-20
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - value of 'fromIndex' which is a
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.lastindexof
|
||||
es5id: 15.4.4.15-5-21
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - value of 'fromIndex' which is an
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.lastindexof
|
||||
es5id: 15.4.4.15-5-22
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - value of 'fromIndex' which is an
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.lastindexof
|
||||
es5id: 15.4.4.15-5-23
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - value of 'fromIndex' is an object
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.lastindexof
|
||||
es5id: 15.4.4.15-5-24
|
||||
description: >
|
||||
Array.prototype.lastIndexOf throws TypeError exception when value
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.lastindexof
|
||||
es5id: 15.4.4.15-5-25
|
||||
description: >
|
||||
Array.prototype.lastIndexOf use 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.lastindexof
|
||||
es5id: 15.4.4.15-5-26
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - 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.lastindexof
|
||||
es5id: 15.4.4.15-5-27
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - 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.lastindexof
|
||||
es5id: 15.4.4.15-5-28
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - 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.lastindexof
|
||||
es5id: 15.4.4.15-5-29
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - 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.lastindexof
|
||||
es5id: 15.4.4.15-5-3
|
||||
description: Array.prototype.lastIndexOf 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.lastindexof
|
||||
es5id: 15.4.4.15-5-30
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - 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.lastindexof
|
||||
es5id: 15.4.4.15-5-31
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - 'fromIndex' is a positive
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.lastindexof
|
||||
es5id: 15.4.4.15-5-32
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - 'fromIndex' is a negative
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.lastindexof
|
||||
es5id: 15.4.4.15-5-33
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - 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.lastindexof
|
||||
es5id: 15.4.4.15-5-4
|
||||
description: Array.prototype.lastIndexOf when fromIndex is undefined
|
||||
---*/
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.lastindexof
|
||||
es5id: 15.4.4.15-5-5
|
||||
description: Array.prototype.lastIndexOf when fromIndex is null
|
||||
---*/
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.lastindexof
|
||||
es5id: 15.4.4.15-5-6
|
||||
description: Array.prototype.lastIndexOf when 'fromIndex' isn't passed
|
||||
---*/
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.lastindexof
|
||||
es5id: 15.4.4.15-5-7
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - value of 'fromIndex' is a number
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-array.prototype.lastindexof
|
||||
es5id: 15.4.4.15-5-8
|
||||
description: >
|
||||
Array.prototype.lastIndexOf - value of 'fromIndex' is a number
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue