mirror of
https://github.com/tc39/test262.git
synced 2025-07-31 01:44:54 +02:00
add esid to array/prototype/some tests
This commit is contained in:
parent
da291ca3b1
commit
474237a725
@ -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.some
|
||||||
es5id: 15.4.4.17-1-1
|
es5id: 15.4.4.17-1-1
|
||||||
description: Array.prototype.some applied to undefined throws a TypeError
|
description: Array.prototype.some 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.some
|
||||||
es5id: 15.4.4.17-1-10
|
es5id: 15.4.4.17-1-10
|
||||||
description: Array.prototype.some applied to the Math object
|
description: Array.prototype.some 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.some
|
||||||
es5id: 15.4.4.17-1-11
|
es5id: 15.4.4.17-1-11
|
||||||
description: Array.prototype.some applied to Date object
|
description: Array.prototype.some 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.some
|
||||||
es5id: 15.4.4.17-1-12
|
es5id: 15.4.4.17-1-12
|
||||||
description: Array.prototype.some applied to RegExp object
|
description: Array.prototype.some 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.some
|
||||||
es5id: 15.4.4.17-1-13
|
es5id: 15.4.4.17-1-13
|
||||||
description: Array.prototype.some applied to the JSON object
|
description: Array.prototype.some 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.some
|
||||||
es5id: 15.4.4.17-1-14
|
es5id: 15.4.4.17-1-14
|
||||||
description: Array.prototype.some applied to Error object
|
description: Array.prototype.some 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.some
|
||||||
es5id: 15.4.4.17-1-15
|
es5id: 15.4.4.17-1-15
|
||||||
description: Array.prototype.some applied to the Arguments object
|
description: Array.prototype.some applied to the 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.some
|
||||||
es5id: 15.4.4.17-1-2
|
es5id: 15.4.4.17-1-2
|
||||||
description: Array.prototype.some applied to null throws a TypeError
|
description: Array.prototype.some 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.some
|
||||||
es5id: 15.4.4.17-1-3
|
es5id: 15.4.4.17-1-3
|
||||||
description: Array.prototype.some applied to boolean primitive
|
description: Array.prototype.some 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.some
|
||||||
es5id: 15.4.4.17-1-4
|
es5id: 15.4.4.17-1-4
|
||||||
description: Array.prototype.some applied to Boolean object
|
description: Array.prototype.some 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.some
|
||||||
es5id: 15.4.4.17-1-5
|
es5id: 15.4.4.17-1-5
|
||||||
description: Array.prototype.some applied to number primitive
|
description: Array.prototype.some 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.some
|
||||||
es5id: 15.4.4.17-1-6
|
es5id: 15.4.4.17-1-6
|
||||||
description: Array.prototype.some applied to Number object
|
description: Array.prototype.some 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.some
|
||||||
es5id: 15.4.4.17-1-7
|
es5id: 15.4.4.17-1-7
|
||||||
description: Array.prototype.some applied to applied to string primitive
|
description: Array.prototype.some applied to 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.some
|
||||||
es5id: 15.4.4.17-1-8
|
es5id: 15.4.4.17-1-8
|
||||||
description: Array.prototype.some applied to String object
|
description: Array.prototype.some 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.some
|
||||||
es5id: 15.4.4.17-1-9
|
es5id: 15.4.4.17-1-9
|
||||||
description: Array.prototype.some applied to Function object
|
description: Array.prototype.some 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.some
|
||||||
es5id: 15.4.4.17-2-1
|
es5id: 15.4.4.17-2-1
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some - 'length' is own data property on an
|
Array.prototype.some - '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.some
|
||||||
es5id: 15.4.4.17-2-10
|
es5id: 15.4.4.17-2-10
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some - 'length' is an inherited accessor property
|
Array.prototype.some - 'length' is an 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.some
|
||||||
es5id: 15.4.4.17-2-11
|
es5id: 15.4.4.17-2-11
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some - 'length' is an own accessor property
|
Array.prototype.some - 'length' is an 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.some
|
||||||
es5id: 15.4.4.17-2-12
|
es5id: 15.4.4.17-2-12
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some - 'length' is own accessor property without a
|
Array.prototype.some - 'length' is own accessor property without 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.some
|
||||||
es5id: 15.4.4.17-2-13
|
es5id: 15.4.4.17-2-13
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some - 'length' is inherited accessor property
|
Array.prototype.some - '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.some
|
||||||
es5id: 15.4.4.17-2-14
|
es5id: 15.4.4.17-2-14
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some - 'length' property doesn't exist on an
|
Array.prototype.some - 'length' property doesn't exist 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.some
|
||||||
es5id: 15.4.4.17-2-17
|
es5id: 15.4.4.17-2-17
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some applied to the Arguments object which
|
Array.prototype.some applied to the 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.some
|
||||||
es5id: 15.4.4.17-2-18
|
es5id: 15.4.4.17-2-18
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some applied to String object which implements its
|
Array.prototype.some applied to String object which implements its
|
||||||
|
@ -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.some
|
||||||
es5id: 15.4.4.17-2-19
|
es5id: 15.4.4.17-2-19
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some applied to Function object which implements
|
Array.prototype.some applied to Function 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.some
|
||||||
es5id: 15.4.4.17-2-2
|
es5id: 15.4.4.17-2-2
|
||||||
description: Array.prototype.some - 'length' is own data property on an Array
|
description: Array.prototype.some - 'length' is own data property on an Array
|
||||||
---*/
|
---*/
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
|
esid: sec-array.prototype.some
|
||||||
es5id: 15.4.4.17-2-3
|
es5id: 15.4.4.17-2-3
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some - 'length' is an own data property that
|
Array.prototype.some - 'length' is an 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.some
|
||||||
es5id: 15.4.4.17-2-4
|
es5id: 15.4.4.17-2-4
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some - 'length' is an own data property that
|
Array.prototype.some - 'length' is an 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.some
|
||||||
es5id: 15.4.4.17-2-5
|
es5id: 15.4.4.17-2-5
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some - 'length' is an own data property that
|
Array.prototype.some - 'length' is an 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.some
|
||||||
es5id: 15.4.4.17-2-6
|
es5id: 15.4.4.17-2-6
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some - 'length' is an inherited data property on
|
Array.prototype.some - 'length' is an inherited data property on
|
||||||
|
@ -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.some
|
||||||
es5id: 15.4.4.17-2-7
|
es5id: 15.4.4.17-2-7
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some - 'length' is an own accessor property on an
|
Array.prototype.some - 'length' is an own accessor 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.some
|
||||||
es5id: 15.4.4.17-2-8
|
es5id: 15.4.4.17-2-8
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some - 'length' is an own accessor property that
|
Array.prototype.some - 'length' is an 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.some
|
||||||
es5id: 15.4.4.17-2-9
|
es5id: 15.4.4.17-2-9
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some - 'length' is an own accessor property that
|
Array.prototype.some - 'length' is an 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.some
|
||||||
es5id: 15.4.4.17-3-1
|
es5id: 15.4.4.17-3-1
|
||||||
description: Array.prototype.some - value of 'length' is undefined
|
description: Array.prototype.some - 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.some
|
||||||
es5id: 15.4.4.17-3-10
|
es5id: 15.4.4.17-3-10
|
||||||
description: Array.prototype.some - value of 'length' is a number (value is NaN)
|
description: Array.prototype.some - value of 'length' is a number (value is NaN)
|
||||||
---*/
|
---*/
|
||||||
|
@ -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.some
|
||||||
es5id: 15.4.4.17-3-11
|
es5id: 15.4.4.17-3-11
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some - 'length' is a string containing a positive
|
Array.prototype.some - 'length' is a string containing 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.some
|
||||||
es5id: 15.4.4.17-3-12
|
es5id: 15.4.4.17-3-12
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some - 'length' is a string containing a negative
|
Array.prototype.some - 'length' is a string containing 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.some
|
||||||
es5id: 15.4.4.17-3-13
|
es5id: 15.4.4.17-3-13
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some - 'length' is a string containing a decimal
|
Array.prototype.some - 'length' is a string containing a decimal
|
||||||
|
@ -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.some
|
||||||
es5id: 15.4.4.17-3-14
|
es5id: 15.4.4.17-3-14
|
||||||
description: Array.prototype.some - 'length' is a string containing +/-Infinity
|
description: Array.prototype.some - 'length' is a string containing +/-Infinity
|
||||||
---*/
|
---*/
|
||||||
|
@ -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.some
|
||||||
es5id: 15.4.4.17-3-15
|
es5id: 15.4.4.17-3-15
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some - 'length' is a string containing an
|
Array.prototype.some - '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.some
|
||||||
es5id: 15.4.4.17-3-16
|
es5id: 15.4.4.17-3-16
|
||||||
description: Array.prototype.some - 'length' is a string containing a hex number
|
description: Array.prototype.some - 'length' is a string containing a hex 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.some
|
||||||
es5id: 15.4.4.17-3-17
|
es5id: 15.4.4.17-3-17
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some - 'length' is a string containing a number
|
Array.prototype.some - '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.some
|
||||||
es5id: 15.4.4.17-3-18
|
es5id: 15.4.4.17-3-18
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some - value of 'length' is a string that can't
|
Array.prototype.some - 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.some
|
||||||
es5id: 15.4.4.17-3-19
|
es5id: 15.4.4.17-3-19
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some - value of 'length' is an Object which has an
|
Array.prototype.some - value of 'length' is an Object which has 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.some
|
||||||
es5id: 15.4.4.17-3-2
|
es5id: 15.4.4.17-3-2
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some on an Array-like object if 'length' is 1
|
Array.prototype.some on an Array-like object if 'length' is 1
|
||||||
@ -15,7 +16,7 @@ description: >
|
|||||||
function callbackfn2(val, idx, obj) {
|
function callbackfn2(val, idx, obj) {
|
||||||
return val > 11;
|
return val > 11;
|
||||||
}
|
}
|
||||||
|
|
||||||
var obj = { 0: 11, 1: 12, length: true };
|
var obj = { 0: 11, 1: 12, length: true };
|
||||||
|
|
||||||
assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== true');
|
assert(Array.prototype.some.call(obj, callbackfn1), 'Array.prototype.some.call(obj, callbackfn1) !== 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.some
|
||||||
es5id: 15.4.4.17-3-20
|
es5id: 15.4.4.17-3-20
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some - value of 'length' is an Object which has an
|
Array.prototype.some - value of 'length' is an Object which has 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.some
|
||||||
es5id: 15.4.4.17-3-21
|
es5id: 15.4.4.17-3-21
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some - 'length' is an object that has an own
|
Array.prototype.some - '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.some
|
||||||
es5id: 15.4.4.17-3-22
|
es5id: 15.4.4.17-3-22
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some throws TypeError exception when 'length' is
|
Array.prototype.some throws TypeError exception when 'length' 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.some
|
||||||
es5id: 15.4.4.17-3-23
|
es5id: 15.4.4.17-3-23
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some uses inherited valueOf method when 'length'
|
Array.prototype.some uses inherited valueOf method 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.some
|
||||||
es5id: 15.4.4.17-3-24
|
es5id: 15.4.4.17-3-24
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some - value of 'length' is a positive
|
Array.prototype.some - 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.some
|
||||||
es5id: 15.4.4.17-3-25
|
es5id: 15.4.4.17-3-25
|
||||||
description: Array.prototype.some - value of 'length' is a negative non-integer
|
description: Array.prototype.some - value of 'length' 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.some
|
||||||
es5id: 15.4.4.17-3-28
|
es5id: 15.4.4.17-3-28
|
||||||
description: Array.prototype.some - value of 'length' is boundary value (2^32)
|
description: Array.prototype.some - value of 'length' is boundary value (2^32)
|
||||||
---*/
|
---*/
|
||||||
|
@ -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.some
|
||||||
es5id: 15.4.4.17-3-29
|
es5id: 15.4.4.17-3-29
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some - value of 'length' is boundary value (2^32 +
|
Array.prototype.some - value of 'length' is boundary value (2^32 +
|
||||||
|
@ -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.some
|
||||||
es5id: 15.4.4.17-3-3
|
es5id: 15.4.4.17-3-3
|
||||||
description: Array.prototype.some - value of 'length' is a number (value is 0)
|
description: Array.prototype.some - value of 'length' is a number (value is 0)
|
||||||
---*/
|
---*/
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
|
esid: sec-array.prototype.some
|
||||||
es5id: 15.4.4.17-3-4
|
es5id: 15.4.4.17-3-4
|
||||||
description: Array.prototype.some - value of 'length' is a number (value is +0)
|
description: Array.prototype.some - value of 'length' is a number (value is +0)
|
||||||
---*/
|
---*/
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
|
esid: sec-array.prototype.some
|
||||||
es5id: 15.4.4.17-3-5
|
es5id: 15.4.4.17-3-5
|
||||||
description: Array.prototype.some - value of 'length' is a number (value is -0)
|
description: Array.prototype.some - value of 'length' is a number (value is -0)
|
||||||
---*/
|
---*/
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
|
esid: sec-array.prototype.some
|
||||||
es5id: 15.4.4.17-3-6
|
es5id: 15.4.4.17-3-6
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some - value of 'length' is a number (value is
|
Array.prototype.some - 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.some
|
||||||
es5id: 15.4.4.17-3-7
|
es5id: 15.4.4.17-3-7
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some - value of 'length' is a number (value is
|
Array.prototype.some - 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.some
|
||||||
es5id: 15.4.4.17-3-8
|
es5id: 15.4.4.17-3-8
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some - value of 'length' is a number (value is
|
Array.prototype.some - 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.some
|
||||||
es5id: 15.4.4.17-3-9
|
es5id: 15.4.4.17-3-9
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some - value of 'length' is a number (value is
|
Array.prototype.some - 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.some
|
||||||
es5id: 15.4.4.17-4-1
|
es5id: 15.4.4.17-4-1
|
||||||
description: Array.prototype.some throws TypeError if callbackfn is undefined
|
description: Array.prototype.some throws TypeError if callbackfn 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.some
|
||||||
es5id: 15.4.4.17-4-10
|
es5id: 15.4.4.17-4-10
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some - the exception is not thrown if exception
|
Array.prototype.some - the exception is not thrown if exception
|
||||||
|
@ -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.some
|
||||||
es5id: 15.4.4.17-4-11
|
es5id: 15.4.4.17-4-11
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some - the exception is not thrown if exception
|
Array.prototype.some - the exception is not thrown if exception
|
||||||
|
@ -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.some
|
||||||
es5id: 15.4.4.17-4-12
|
es5id: 15.4.4.17-4-12
|
||||||
description: Array.prototype.some - 'callbackfn' is a function
|
description: Array.prototype.some - 'callbackfn' is a 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.some
|
||||||
es5id: 15.4.4.17-4-15
|
es5id: 15.4.4.17-4-15
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some - calling with no callbackfn is the same as
|
Array.prototype.some - calling with no callbackfn is the same as
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
|
esid: sec-array.prototype.some
|
||||||
es5id: 15.4.4.17-4-2
|
es5id: 15.4.4.17-4-2
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some throws ReferenceError if callbackfn is
|
Array.prototype.some throws ReferenceError if callbackfn 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.some
|
||||||
es5id: 15.4.4.17-4-3
|
es5id: 15.4.4.17-4-3
|
||||||
description: Array.prototype.some throws TypeError if callbackfn is null
|
description: Array.prototype.some throws TypeError if callbackfn is null
|
||||||
---*/
|
---*/
|
||||||
|
@ -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.some
|
||||||
es5id: 15.4.4.17-4-4
|
es5id: 15.4.4.17-4-4
|
||||||
description: Array.prototype.some throws TypeError if callbackfn is boolean
|
description: Array.prototype.some throws TypeError if callbackfn 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.some
|
||||||
es5id: 15.4.4.17-4-5
|
es5id: 15.4.4.17-4-5
|
||||||
description: Array.prototype.some throws TypeError if callbackfn is number
|
description: Array.prototype.some throws TypeError if callbackfn is 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.some
|
||||||
es5id: 15.4.4.17-4-6
|
es5id: 15.4.4.17-4-6
|
||||||
description: Array.prototype.some throws TypeError if callbackfn is string
|
description: Array.prototype.some throws TypeError if callbackfn 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.some
|
||||||
es5id: 15.4.4.17-4-7
|
es5id: 15.4.4.17-4-7
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some throws TypeError if callbackfn is Object
|
Array.prototype.some throws TypeError if callbackfn is 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.some
|
||||||
es5id: 15.4.4.17-4-8
|
es5id: 15.4.4.17-4-8
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some - side effects produced by step 2 are visible
|
Array.prototype.some - side effects produced by step 2 are visible
|
||||||
|
@ -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.some
|
||||||
es5id: 15.4.4.17-4-9
|
es5id: 15.4.4.17-4-9
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some - side effects produced by step 3 are visible
|
Array.prototype.some - side effects produced by step 3 are visible
|
||||||
|
@ -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.some
|
||||||
es5id: 15.4.4.17-5-1-s
|
es5id: 15.4.4.17-5-1-s
|
||||||
description: Array.prototype.some - thisArg not passed to strict callbackfn
|
description: Array.prototype.some - thisArg not passed to strict callbackfn
|
||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
|
@ -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.some
|
||||||
es5id: 15.4.4.17-5-1
|
es5id: 15.4.4.17-5-1
|
||||||
description: Array.prototype.some - thisArg is passed
|
description: Array.prototype.some - thisArg is passed
|
||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
|
@ -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.some
|
||||||
es5id: 15.4.4.17-5-10
|
es5id: 15.4.4.17-5-10
|
||||||
description: Array.prototype.some - Array Object can be used as thisArg
|
description: Array.prototype.some - Array Object can be used as thisArg
|
||||||
---*/
|
---*/
|
||||||
|
@ -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.some
|
||||||
es5id: 15.4.4.17-5-11
|
es5id: 15.4.4.17-5-11
|
||||||
description: Array.prototype.some - String object can be used as thisArg
|
description: Array.prototype.some - String object can be used as thisArg
|
||||||
---*/
|
---*/
|
||||||
|
@ -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.some
|
||||||
es5id: 15.4.4.17-5-12
|
es5id: 15.4.4.17-5-12
|
||||||
description: Array.prototype.some - Boolean object can be used as thisArg
|
description: Array.prototype.some - Boolean object can be used as thisArg
|
||||||
---*/
|
---*/
|
||||||
|
@ -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.some
|
||||||
es5id: 15.4.4.17-5-13
|
es5id: 15.4.4.17-5-13
|
||||||
description: Array.prototype.some - Number object can be used as thisArg
|
description: Array.prototype.some - Number object can be used as thisArg
|
||||||
---*/
|
---*/
|
||||||
|
@ -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.some
|
||||||
es5id: 15.4.4.17-5-14
|
es5id: 15.4.4.17-5-14
|
||||||
description: Array.prototype.some - the Math object can be used as thisArg
|
description: Array.prototype.some - the Math object can be used as thisArg
|
||||||
---*/
|
---*/
|
||||||
|
@ -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.some
|
||||||
es5id: 15.4.4.17-5-15
|
es5id: 15.4.4.17-5-15
|
||||||
description: Array.prototype.some - Date object can be used as thisArg
|
description: Array.prototype.some - Date object can be used as thisArg
|
||||||
---*/
|
---*/
|
||||||
|
@ -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.some
|
||||||
es5id: 15.4.4.17-5-16
|
es5id: 15.4.4.17-5-16
|
||||||
description: Array.prototype.some - RegExp object can be used as thisArg
|
description: Array.prototype.some - RegExp object can be used as thisArg
|
||||||
---*/
|
---*/
|
||||||
|
@ -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.some
|
||||||
es5id: 15.4.4.17-5-17
|
es5id: 15.4.4.17-5-17
|
||||||
description: Array.prototype.some - the JSON object can be used as thisArg
|
description: Array.prototype.some - the JSON object can be used as thisArg
|
||||||
---*/
|
---*/
|
||||||
|
@ -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.some
|
||||||
es5id: 15.4.4.17-5-18
|
es5id: 15.4.4.17-5-18
|
||||||
description: Array.prototype.some - Error object can be used as thisArg
|
description: Array.prototype.some - Error object can be used as thisArg
|
||||||
---*/
|
---*/
|
||||||
|
@ -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.some
|
||||||
es5id: 15.4.4.17-5-19
|
es5id: 15.4.4.17-5-19
|
||||||
description: Array.prototype.some - the Arguments object can be used as thisArg
|
description: Array.prototype.some - the Arguments object can be used as thisArg
|
||||||
---*/
|
---*/
|
||||||
|
@ -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.some
|
||||||
es5id: 15.4.4.17-5-2
|
es5id: 15.4.4.17-5-2
|
||||||
description: Array.prototype.some - thisArg is Object
|
description: Array.prototype.some - thisArg is 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.some
|
||||||
es5id: 15.4.4.17-5-21
|
es5id: 15.4.4.17-5-21
|
||||||
description: Array.prototype.some - the global object can be used as thisArg
|
description: Array.prototype.some - the global object can be used as thisArg
|
||||||
---*/
|
---*/
|
||||||
|
@ -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.some
|
||||||
es5id: 15.4.4.17-5-22
|
es5id: 15.4.4.17-5-22
|
||||||
description: Array.prototype.some - boolean primitive can be used as thisArg
|
description: Array.prototype.some - boolean primitive can be used as thisArg
|
||||||
---*/
|
---*/
|
||||||
|
@ -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.some
|
||||||
es5id: 15.4.4.17-5-23
|
es5id: 15.4.4.17-5-23
|
||||||
description: Array.prototype.some - number primitive can be used as thisArg
|
description: Array.prototype.some - number primitive can be used as thisArg
|
||||||
---*/
|
---*/
|
||||||
|
@ -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.some
|
||||||
es5id: 15.4.4.17-5-24
|
es5id: 15.4.4.17-5-24
|
||||||
description: Array.prototype.some - string primitive can be used as thisArg
|
description: Array.prototype.some - string primitive can be used as thisArg
|
||||||
---*/
|
---*/
|
||||||
|
@ -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.some
|
||||||
es5id: 15.4.4.17-5-25
|
es5id: 15.4.4.17-5-25
|
||||||
description: Array.prototype.some - thisArg not passed
|
description: Array.prototype.some - thisArg not passed
|
||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
@ -10,7 +11,7 @@ flags: [noStrict]
|
|||||||
function innerObj() {
|
function innerObj() {
|
||||||
this._15_4_4_17_5_25 = true;
|
this._15_4_4_17_5_25 = true;
|
||||||
var _15_4_4_17_5_25 = false;
|
var _15_4_4_17_5_25 = false;
|
||||||
|
|
||||||
function callbackfn(val, idx, obj) {
|
function callbackfn(val, idx, obj) {
|
||||||
return this._15_4_4_17_5_25;
|
return this._15_4_4_17_5_25;
|
||||||
}
|
}
|
||||||
|
@ -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.some
|
||||||
es5id: 15.4.4.17-5-3
|
es5id: 15.4.4.17-5-3
|
||||||
description: Array.prototype.some - thisArg is Array
|
description: Array.prototype.some - thisArg is 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.some
|
||||||
es5id: 15.4.4.17-5-4
|
es5id: 15.4.4.17-5-4
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some - thisArg is object from object
|
Array.prototype.some - thisArg is object from object
|
||||||
@ -13,7 +14,7 @@ description: >
|
|||||||
{
|
{
|
||||||
return this.res;
|
return this.res;
|
||||||
}
|
}
|
||||||
|
|
||||||
function foo(){}
|
function foo(){}
|
||||||
foo.prototype.res = true;
|
foo.prototype.res = true;
|
||||||
var f = new foo();
|
var f = new foo();
|
||||||
|
@ -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.some
|
||||||
es5id: 15.4.4.17-5-5
|
es5id: 15.4.4.17-5-5
|
||||||
description: Array.prototype.some - thisArg is object from object template
|
description: Array.prototype.some - thisArg is object from object template
|
||||||
---*/
|
---*/
|
||||||
|
@ -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.some
|
||||||
es5id: 15.4.4.17-5-6
|
es5id: 15.4.4.17-5-6
|
||||||
description: Array.prototype.some - thisArg is function
|
description: Array.prototype.some - thisArg is 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.some
|
||||||
es5id: 15.4.4.17-5-7
|
es5id: 15.4.4.17-5-7
|
||||||
description: Array.prototype.some - built-in functions can be used as thisArg
|
description: Array.prototype.some - built-in functions can be used as thisArg
|
||||||
---*/
|
---*/
|
||||||
|
@ -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.some
|
||||||
es5id: 15.4.4.17-5-9
|
es5id: 15.4.4.17-5-9
|
||||||
description: Array.prototype.some - Function Object can be used as thisArg
|
description: Array.prototype.some - Function Object can be used as thisArg
|
||||||
---*/
|
---*/
|
||||||
|
@ -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.some
|
||||||
es5id: 15.4.4.17-7-1
|
es5id: 15.4.4.17-7-1
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some considers new elements added to array after
|
Array.prototype.some considers new elements added to array after
|
||||||
@ -9,7 +10,7 @@ description: >
|
|||||||
---*/
|
---*/
|
||||||
|
|
||||||
var calledForThree = false;
|
var calledForThree = false;
|
||||||
|
|
||||||
function callbackfn(val, idx, obj)
|
function callbackfn(val, idx, obj)
|
||||||
{
|
{
|
||||||
arr[2] = 3;
|
arr[2] = 3;
|
||||||
@ -20,7 +21,7 @@ description: >
|
|||||||
}
|
}
|
||||||
|
|
||||||
var arr = [1,2,,4,5];
|
var arr = [1,2,,4,5];
|
||||||
|
|
||||||
var val = arr.some(callbackfn);
|
var val = arr.some(callbackfn);
|
||||||
|
|
||||||
assert(calledForThree, 'calledForThree !== true');
|
assert(calledForThree, 'calledForThree !== 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.some
|
||||||
es5id: 15.4.4.17-7-2
|
es5id: 15.4.4.17-7-2
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some considers new value of elements in array
|
Array.prototype.some considers new value of elements in array
|
||||||
@ -13,11 +14,11 @@ description: >
|
|||||||
arr[4] = 6;
|
arr[4] = 6;
|
||||||
if(val < 6)
|
if(val < 6)
|
||||||
return false;
|
return false;
|
||||||
else
|
else
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
var arr = [1,2,3,4,5];
|
var arr = [1,2,3,4,5];
|
||||||
|
|
||||||
|
|
||||||
assert.sameValue(arr.some(callbackfn), true, 'arr.some(callbackfn)');
|
assert.sameValue(arr.some(callbackfn), true, 'arr.some(callbackfn)');
|
||||||
|
@ -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.some
|
||||||
es5id: 15.4.4.17-7-3
|
es5id: 15.4.4.17-7-3
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some doesn't visit deleted elements in array after
|
Array.prototype.some doesn't visit deleted elements in array after
|
||||||
@ -13,11 +14,11 @@ description: >
|
|||||||
delete arr[2];
|
delete arr[2];
|
||||||
if(val !== 3)
|
if(val !== 3)
|
||||||
return false;
|
return false;
|
||||||
else
|
else
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
var arr = [1,2,3,4,5];
|
var arr = [1,2,3,4,5];
|
||||||
|
|
||||||
|
|
||||||
assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)');
|
assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)');
|
||||||
|
@ -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.some
|
||||||
es5id: 15.4.4.17-7-4
|
es5id: 15.4.4.17-7-4
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.some doesn't visit deleted elements when
|
Array.prototype.some doesn't visit deleted elements when
|
||||||
@ -13,11 +14,11 @@ description: >
|
|||||||
arr.length = 3;
|
arr.length = 3;
|
||||||
if(val < 4)
|
if(val < 4)
|
||||||
return false;
|
return false;
|
||||||
else
|
else
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
var arr = [1,2,3,4,6];
|
var arr = [1,2,3,4,6];
|
||||||
|
|
||||||
|
|
||||||
assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)');
|
assert.sameValue(arr.some(callbackfn), false, 'arr.some(callbackfn)');
|
||||||
|
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