mirror of
https://github.com/tc39/test262.git
synced 2025-07-28 16:34:27 +02:00
Fix copyrights and features metadata
This commit is contained in:
parent
41e946d00b
commit
4b54d54113
@ -249,6 +249,10 @@ Temporal
|
|||||||
# https://github.com/tc39/proposal-realms
|
# https://github.com/tc39/proposal-realms
|
||||||
callable-boundary-realms
|
callable-boundary-realms
|
||||||
|
|
||||||
|
# Array.prototype.findLast & Array.prototype.findLastIndex
|
||||||
|
# https://github.com/tc39/proposal-array-find-from-last
|
||||||
|
array-find-from-last
|
||||||
|
|
||||||
## Standard language features
|
## Standard language features
|
||||||
#
|
#
|
||||||
# Language features that have been included in a published version of the
|
# Language features that have been included in a published version of the
|
||||||
|
@ -1,18 +1,19 @@
|
|||||||
// Copyright (C) 2021 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.findlast
|
esid: sec-array.prototype.findlast
|
||||||
description: >
|
description: >
|
||||||
The range of elements processed is set before the first call to `predicate`.
|
The range of elements processed is set before the first call to `predicate`.
|
||||||
info: |
|
info: |
|
||||||
Array.prototype.findLast ( predicate[ , thisArg ] )
|
Array.prototype.findLast ( predicate[ , thisArg ] )
|
||||||
|
|
||||||
...
|
...
|
||||||
4. Let k be len - 1.
|
4. Let k be len - 1.
|
||||||
5. Repeat, while k ≥ 0,
|
5. Repeat, while k ≥ 0,
|
||||||
...
|
|
||||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
|
||||||
...
|
...
|
||||||
|
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||||
|
...
|
||||||
|
features: [array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var arr = ['Shoes', 'Car', 'Bike'];
|
var arr = ['Shoes', 'Car', 'Bike'];
|
||||||
@ -32,7 +33,7 @@ assert.sameValue(results[2], 'Shoes');
|
|||||||
|
|
||||||
results = [];
|
results = [];
|
||||||
arr = ['Skateboard', 'Barefoot'];
|
arr = ['Skateboard', 'Barefoot'];
|
||||||
arr.find(function(kValue) {
|
arr.findLast(function(kValue) {
|
||||||
if (results.length === 0) {
|
if (results.length === 0) {
|
||||||
arr.push('Motorcycle');
|
arr.push('Motorcycle');
|
||||||
arr[1] = 'Magic Carpet';
|
arr[1] = 'Magic Carpet';
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
// Copyright (c) 2021 Rick Waldron. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.findlast
|
esid: sec-array.prototype.findlast
|
||||||
description: Array.prototype.findLast applied to boolean primitive
|
description: Array.prototype.findLast applied to boolean primitive.
|
||||||
|
features: [array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(
|
assert.sameValue(
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
// Copyright (C) 2021 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.findlast
|
esid: sec-array.prototype.findlast
|
||||||
description: Array.prototype.findLast.length value and descriptor.
|
description: Array.prototype.findLast.length value and descriptor.
|
||||||
info: |
|
info: |
|
||||||
17 ECMAScript Standard Built-in Objects
|
17 ECMAScript Standard Built-in Objects
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
|
features: [array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(
|
assert.sameValue(
|
||||||
|
@ -1,15 +1,16 @@
|
|||||||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.findlast
|
esid: sec-array.prototype.findlast
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.findLast.name value and descriptor.
|
Array.prototype.findLast.name value and descriptor.
|
||||||
info: |
|
info: |
|
||||||
Array.prototype.findLast ( predicate [ , thisArg ] )
|
Array.prototype.findLast ( predicate [ , thisArg ] )
|
||||||
|
|
||||||
17 ECMAScript Standard Built-in Objects
|
17 ECMAScript Standard Built-in Objects
|
||||||
|
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
|
features: [array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(
|
assert.sameValue(
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-ecmascript-standard-built-in-objects
|
esid: sec-ecmascript-standard-built-in-objects
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.findLast does not implement [[Construct]], is not new-able
|
Array.prototype.findLast does not implement [[Construct]], is not new-able.
|
||||||
info: |
|
info: |
|
||||||
ECMAScript Function Objects
|
ECMAScript Function Objects
|
||||||
|
|
||||||
@ -18,7 +18,7 @@ info: |
|
|||||||
7. If IsConstructor(constructor) is false, throw a TypeError exception.
|
7. If IsConstructor(constructor) is false, throw a TypeError exception.
|
||||||
...
|
...
|
||||||
includes: [isConstructor.js]
|
includes: [isConstructor.js]
|
||||||
features: [Reflect.construct, arrow-function]
|
features: [Reflect.construct, arrow-function, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(isConstructor(Array.prototype.findLast), false, 'isConstructor(Array.prototype.findLast) must return false');
|
assert.sameValue(isConstructor(Array.prototype.findLast), false, 'isConstructor(Array.prototype.findLast) must return false');
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.findlast
|
esid: sec-array.prototype.findlast
|
||||||
@ -14,6 +14,7 @@ info: |
|
|||||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||||
d. If testResult is true, return kValue.
|
d. If testResult is true, return kValue.
|
||||||
...
|
...
|
||||||
|
features: [array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var arr = ['Mike', 'Rick', 'Leo'];
|
var arr = ['Mike', 'Rick', 'Leo'];
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.findlast
|
esid: sec-array.prototype.findlast
|
||||||
@ -14,6 +14,7 @@ info: |
|
|||||||
d. If testResult is true, return kValue.
|
d. If testResult is true, return kValue.
|
||||||
...
|
...
|
||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
|
features: [array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var result;
|
var result;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.findlast
|
esid: sec-array.prototype.findlast
|
||||||
@ -14,6 +14,7 @@ info: |
|
|||||||
d. If testResult is true, return kValue.
|
d. If testResult is true, return kValue.
|
||||||
...
|
...
|
||||||
flags: [onlyStrict]
|
flags: [onlyStrict]
|
||||||
|
features: [array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var result;
|
var result;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.findlast
|
esid: sec-array.prototype.findlast
|
||||||
@ -13,6 +13,7 @@ info: |
|
|||||||
...
|
...
|
||||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||||
...
|
...
|
||||||
|
features: [array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var arr = [undefined, , , 'foo'];
|
var arr = [undefined, , , 'foo'];
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.findlast
|
esid: sec-array.prototype.findlast
|
||||||
@ -10,6 +10,7 @@ info: |
|
|||||||
...
|
...
|
||||||
3. If IsCallable(predicate) is false, throw a TypeError exception.
|
3. If IsCallable(predicate) is false, throw a TypeError exception.
|
||||||
...
|
...
|
||||||
|
features: [array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.throws(TypeError, function() {
|
assert.throws(TypeError, function() {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.findlast
|
esid: sec-array.prototype.findlast
|
||||||
@ -14,6 +14,7 @@ info: |
|
|||||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||||
...
|
...
|
||||||
6. Return undefined.
|
6. Return undefined.
|
||||||
|
features: [array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var called = false;
|
var called = false;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.findlast
|
esid: sec-array.prototype.findlast
|
||||||
@ -6,6 +6,7 @@ description: Property type and descriptor.
|
|||||||
info: |
|
info: |
|
||||||
17 ECMAScript Standard Built-in Objects
|
17 ECMAScript Standard Built-in Objects
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
|
features: [array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(
|
assert.sameValue(
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.findlast
|
esid: sec-array.prototype.findlast
|
||||||
@ -14,6 +14,7 @@ info: |
|
|||||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||||
d. If testResult is true, return kValue.
|
d. If testResult is true, return kValue.
|
||||||
...
|
...
|
||||||
|
features: [array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var predicate = function() {
|
var predicate = function() {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.findlast
|
esid: sec-array.prototype.findlast
|
||||||
@ -15,6 +15,7 @@ info: |
|
|||||||
...
|
...
|
||||||
d. If testResult is true, return kValue.
|
d. If testResult is true, return kValue.
|
||||||
...
|
...
|
||||||
|
features: [array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var o = {
|
var o = {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.findlast
|
esid: sec-array.prototype.findlast
|
||||||
@ -10,7 +10,7 @@ info: |
|
|||||||
1. Let O be ? ToObject(this value).
|
1. Let O be ? ToObject(this value).
|
||||||
2. Let len be ? LengthOfArrayLike(O).
|
2. Let len be ? LengthOfArrayLike(O).
|
||||||
|
|
||||||
features: [Symbol]
|
features: [Symbol, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var o = {};
|
var o = {};
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.findlast
|
esid: sec-array.prototype.findlast
|
||||||
@ -9,6 +9,7 @@ info: |
|
|||||||
|
|
||||||
1. Let O be ? ToObject(this value).
|
1. Let O be ? ToObject(this value).
|
||||||
2. Let len be ? LengthOfArrayLike(O).
|
2. Let len be ? LengthOfArrayLike(O).
|
||||||
|
features: [array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var o1 = {};
|
var o1 = {};
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.findlast
|
esid: sec-array.prototype.findlast
|
||||||
@ -8,6 +8,7 @@ info: |
|
|||||||
Array.prototype.findLast ( predicate[ , thisArg ] )
|
Array.prototype.findLast ( predicate[ , thisArg ] )
|
||||||
|
|
||||||
1. Let O be ? ToObject(this value).
|
1. Let O be ? ToObject(this value).
|
||||||
|
features: [array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
// predicate fn is given to avoid false positives
|
// predicate fn is given to avoid false positives
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.findlast
|
esid: sec-array.prototype.findlast
|
||||||
@ -13,7 +13,7 @@ info: |
|
|||||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||||
d. If testResult is true, return kValue.
|
d. If testResult is true, return kValue.
|
||||||
...
|
...
|
||||||
features: [Symbol]
|
features: [Symbol, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var arr = ['Shoes', 'Car', 'Bike'];
|
var arr = ['Shoes', 'Car', 'Bike'];
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.findlast
|
esid: sec-array.prototype.findlast
|
||||||
@ -13,7 +13,7 @@ info: |
|
|||||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||||
...
|
...
|
||||||
6. Return undefined.
|
6. Return undefined.
|
||||||
features: [Symbol]
|
features: [Symbol, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var arr = ['Shoes', 'Car', 'Bike'];
|
var arr = ['Shoes', 'Car', 'Bike'];
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.findlastindex
|
esid: sec-array.prototype.findlastindex
|
||||||
@ -13,6 +13,7 @@ info: |
|
|||||||
...
|
...
|
||||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||||
...
|
...
|
||||||
|
features: [array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var arr = ['Shoes', 'Car', 'Bike'];
|
var arr = ['Shoes', 'Car', 'Bike'];
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
// Copyright (c) 2020 Rick Waldron. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.findlastindex
|
esid: sec-array.prototype.findlastindex
|
||||||
description: Array.prototype.findLastIndex applied to boolean primitive
|
description: Array.prototype.findLastIndex applied to boolean primitive.
|
||||||
|
features: [array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(
|
assert.sameValue(
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.findlastindex
|
esid: sec-array.prototype.findlastindex
|
||||||
@ -6,6 +6,7 @@ description: Array.prototype.findLastIndex.length value and descriptor.
|
|||||||
info: |
|
info: |
|
||||||
17 ECMAScript Standard Built-in Objects
|
17 ECMAScript Standard Built-in Objects
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
|
features: [array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(
|
assert.sameValue(
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.findlastindex
|
esid: sec-array.prototype.findlastindex
|
||||||
@ -10,10 +10,11 @@ info: |
|
|||||||
17 ECMAScript Standard Built-in Objects
|
17 ECMAScript Standard Built-in Objects
|
||||||
|
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
|
features: [array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(
|
assert.sameValue(
|
||||||
Array.prototype.findIndex.name, 'findLastIndex',
|
Array.prototype.findLastIndex.name, 'findLastIndex',
|
||||||
'The value of `Array.prototype.findLastIndex.name` is `"findLastIndex"`'
|
'The value of `Array.prototype.findLastIndex.name` is `"findLastIndex"`'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-ecmascript-standard-built-in-objects
|
esid: sec-ecmascript-standard-built-in-objects
|
||||||
description: >
|
description: >
|
||||||
Array.prototype.findLastIndex does not implement [[Construct]], is not new-able
|
Array.prototype.findLastIndex does not implement [[Construct]], is not new-able.
|
||||||
info: |
|
info: |
|
||||||
ECMAScript Function Objects
|
ECMAScript Function Objects
|
||||||
|
|
||||||
@ -18,7 +18,7 @@ info: |
|
|||||||
7. If IsConstructor(constructor) is false, throw a TypeError exception.
|
7. If IsConstructor(constructor) is false, throw a TypeError exception.
|
||||||
...
|
...
|
||||||
includes: [isConstructor.js]
|
includes: [isConstructor.js]
|
||||||
features: [Reflect.construct, arrow-function]
|
features: [Reflect.construct, arrow-function, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(
|
assert.sameValue(
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.findlastindex
|
esid: sec-array.prototype.findlastindex
|
||||||
@ -13,6 +13,7 @@ info: |
|
|||||||
...
|
...
|
||||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||||
...
|
...
|
||||||
|
features: [array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var arr = ['Mike', 'Rick', 'Leo'];
|
var arr = ['Mike', 'Rick', 'Leo'];
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.findlastindex
|
esid: sec-array.prototype.findlastindex
|
||||||
@ -14,6 +14,7 @@ info: |
|
|||||||
d. If testResult is true, return 𝔽(k).
|
d. If testResult is true, return 𝔽(k).
|
||||||
...
|
...
|
||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
|
features: [array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var result;
|
var result;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.findlastindex
|
esid: sec-array.prototype.findlastindex
|
||||||
@ -14,6 +14,7 @@ info: |
|
|||||||
d. If testResult is true, return 𝔽(k).
|
d. If testResult is true, return 𝔽(k).
|
||||||
...
|
...
|
||||||
flags: [onlyStrict]
|
flags: [onlyStrict]
|
||||||
|
features: [array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var result;
|
var result;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.findlastindex
|
esid: sec-array.prototype.findlastindex
|
||||||
@ -13,6 +13,7 @@ info: |
|
|||||||
...
|
...
|
||||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||||
...
|
...
|
||||||
|
features: [array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var arr = [undefined, , , 'foo'];
|
var arr = [undefined, , , 'foo'];
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.findlastindex
|
esid: sec-array.prototype.findlastindex
|
||||||
@ -10,6 +10,7 @@ info: |
|
|||||||
...
|
...
|
||||||
3. If IsCallable(predicate) is false, throw a TypeError exception.
|
3. If IsCallable(predicate) is false, throw a TypeError exception.
|
||||||
...
|
...
|
||||||
|
features: [array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.throws(TypeError, function() {
|
assert.throws(TypeError, function() {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.findlastindex
|
esid: sec-array.prototype.findlastindex
|
||||||
@ -13,6 +13,7 @@ info: |
|
|||||||
...
|
...
|
||||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||||
6. Return -1.
|
6. Return -1.
|
||||||
|
features: [array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var called = false;
|
var called = false;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.findlastindex
|
esid: sec-array.prototype.findlastindex
|
||||||
@ -6,6 +6,7 @@ description: Property type and descriptor.
|
|||||||
info: |
|
info: |
|
||||||
17 ECMAScript Standard Built-in Objects
|
17 ECMAScript Standard Built-in Objects
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
|
features: [array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(
|
assert.sameValue(
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.findlastindex
|
esid: sec-array.prototype.findlastindex
|
||||||
@ -14,6 +14,7 @@ info: |
|
|||||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||||
d. If testResult is true, return 𝔽(k).
|
d. If testResult is true, return 𝔽(k).
|
||||||
...
|
...
|
||||||
|
features: [array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var predicate = function() {
|
var predicate = function() {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.findlastindex
|
esid: sec-array.prototype.findlastindex
|
||||||
@ -13,6 +13,7 @@ info: |
|
|||||||
a. Let Pk be ! ToString(𝔽(k)).
|
a. Let Pk be ! ToString(𝔽(k)).
|
||||||
b. Let kValue be ? Get(O, Pk).
|
b. Let kValue be ? Get(O, Pk).
|
||||||
...
|
...
|
||||||
|
features: [array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var o = {
|
var o = {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.findlastindex
|
esid: sec-array.prototype.findlastindex
|
||||||
@ -10,7 +10,7 @@ info: |
|
|||||||
1. Let O be ? ToObject(this value).
|
1. Let O be ? ToObject(this value).
|
||||||
2. Let len be ? LengthOfArrayLike(O).
|
2. Let len be ? LengthOfArrayLike(O).
|
||||||
...
|
...
|
||||||
features: [Symbol]
|
features: [Symbol, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var o = {};
|
var o = {};
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.findlastindex
|
esid: sec-array.prototype.findlastindex
|
||||||
@ -9,6 +9,7 @@ info: |
|
|||||||
|
|
||||||
1. Let O be ? ToObject(this value).
|
1. Let O be ? ToObject(this value).
|
||||||
2. Let len be ? LengthOfArrayLike(O).
|
2. Let len be ? LengthOfArrayLike(O).
|
||||||
|
features: [array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var o1 = {};
|
var o1 = {};
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.findlastindex
|
esid: sec-array.prototype.findlastindex
|
||||||
@ -8,6 +8,7 @@ info: |
|
|||||||
Array.prototype.findLastIndex ( predicate[ , thisArg ] )
|
Array.prototype.findLastIndex ( predicate[ , thisArg ] )
|
||||||
|
|
||||||
1. Let O be ? ToObject(this value).
|
1. Let O be ? ToObject(this value).
|
||||||
|
features: [array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
// predicate fn is given to avoid false positives
|
// predicate fn is given to avoid false positives
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.findlastindex
|
esid: sec-array.prototype.findlastindex
|
||||||
@ -13,7 +13,7 @@ info: |
|
|||||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||||
d. If testResult is true, return 𝔽(k).
|
d. If testResult is true, return 𝔽(k).
|
||||||
...
|
...
|
||||||
features: [Symbol]
|
features: [Symbol, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var arr = ['Shoes', 'Car', 'Bike'];
|
var arr = ['Shoes', 'Car', 'Bike'];
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.findlastindex
|
esid: sec-array.prototype.findlastindex
|
||||||
@ -13,7 +13,7 @@ info: |
|
|||||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||||
...
|
...
|
||||||
6. Return -1.
|
6. Return -1.
|
||||||
features: [Symbol]
|
features: [Symbol, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var arr = ['Shoes', 'Car', 'Bike'];
|
var arr = ['Shoes', 'Car', 'Bike'];
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlast
|
esid: sec-%typedarray%.prototype.findlast
|
||||||
@ -14,7 +14,7 @@ info: |
|
|||||||
5. If IsDetachedBuffer(buffer) is true, throw a TypeError exception.
|
5. If IsDetachedBuffer(buffer) is true, throw a TypeError exception.
|
||||||
...
|
...
|
||||||
includes: [testBigIntTypedArray.js, detachArrayBuffer.js]
|
includes: [testBigIntTypedArray.js, detachArrayBuffer.js]
|
||||||
features: [BigInt, TypedArray]
|
features: [BigInt, TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var predicate = function() {
|
var predicate = function() {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlast
|
esid: sec-%typedarray%.prototype.findlast
|
||||||
@ -11,7 +11,7 @@ info: |
|
|||||||
3. Let len be O.[[ArrayLength]].
|
3. Let len be O.[[ArrayLength]].
|
||||||
...
|
...
|
||||||
includes: [testBigIntTypedArray.js]
|
includes: [testBigIntTypedArray.js]
|
||||||
features: [BigInt, TypedArray]
|
features: [BigInt, TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
Object.defineProperty(TypedArray.prototype, "length", {
|
Object.defineProperty(TypedArray.prototype, "length", {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlast
|
esid: sec-%typedarray%.prototype.findlast
|
||||||
@ -14,7 +14,7 @@ info: |
|
|||||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||||
...
|
...
|
||||||
includes: [compareArray.js, testBigIntTypedArray.js]
|
includes: [compareArray.js, testBigIntTypedArray.js]
|
||||||
features: [BigInt, TypedArray]
|
features: [BigInt, TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
testWithBigIntTypedArrayConstructors(function(TA) {
|
testWithBigIntTypedArrayConstructors(function(TA) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlast
|
esid: sec-%typedarray%.prototype.findlast
|
||||||
@ -13,7 +13,7 @@ info: |
|
|||||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||||
...
|
...
|
||||||
includes: [testBigIntTypedArray.js]
|
includes: [testBigIntTypedArray.js]
|
||||||
features: [BigInt, TypedArray]
|
features: [BigInt, TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
testWithBigIntTypedArrayConstructors(function(TA) {
|
testWithBigIntTypedArrayConstructors(function(TA) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlast
|
esid: sec-%typedarray%.prototype.findlast
|
||||||
@ -13,7 +13,7 @@ info: |
|
|||||||
...
|
...
|
||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
includes: [testBigIntTypedArray.js]
|
includes: [testBigIntTypedArray.js]
|
||||||
features: [BigInt, TypedArray]
|
features: [BigInt, TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var T = this;
|
var T = this;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlast
|
esid: sec-%typedarray%.prototype.findlast
|
||||||
@ -13,7 +13,7 @@ info: |
|
|||||||
...
|
...
|
||||||
flags: [onlyStrict]
|
flags: [onlyStrict]
|
||||||
includes: [testBigIntTypedArray.js]
|
includes: [testBigIntTypedArray.js]
|
||||||
features: [BigInt, TypedArray]
|
features: [BigInt, TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
testWithBigIntTypedArrayConstructors(function(TA) {
|
testWithBigIntTypedArrayConstructors(function(TA) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlast
|
esid: sec-%typedarray%.prototype.findlast
|
||||||
@ -11,7 +11,7 @@ info: |
|
|||||||
4. If IsCallable(predicate) is false, throw a TypeError exception.
|
4. If IsCallable(predicate) is false, throw a TypeError exception.
|
||||||
...
|
...
|
||||||
includes: [testBigIntTypedArray.js]
|
includes: [testBigIntTypedArray.js]
|
||||||
features: [BigInt, TypedArray]
|
features: [BigInt, TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
testWithBigIntTypedArrayConstructors(function(TA) {
|
testWithBigIntTypedArrayConstructors(function(TA) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlast
|
esid: sec-%typedarray%.prototype.findlast
|
||||||
@ -21,7 +21,7 @@ info: |
|
|||||||
If IsDetachedBuffer(buffer) is true, return undefined.
|
If IsDetachedBuffer(buffer) is true, return undefined.
|
||||||
|
|
||||||
includes: [testBigIntTypedArray.js, detachArrayBuffer.js]
|
includes: [testBigIntTypedArray.js, detachArrayBuffer.js]
|
||||||
features: [BigInt, TypedArray]
|
features: [BigInt, TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
testWithBigIntTypedArrayConstructors(function(TA) {
|
testWithBigIntTypedArrayConstructors(function(TA) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlast
|
esid: sec-%typedarray%.prototype.findlast
|
||||||
@ -12,7 +12,7 @@ info: |
|
|||||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||||
...
|
...
|
||||||
includes: [testBigIntTypedArray.js]
|
includes: [testBigIntTypedArray.js]
|
||||||
features: [BigInt, TypedArray]
|
features: [BigInt, TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
testWithBigIntTypedArrayConstructors(function(TA) {
|
testWithBigIntTypedArrayConstructors(function(TA) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlast
|
esid: sec-%typedarray%.prototype.findlast
|
||||||
@ -12,7 +12,7 @@ info: |
|
|||||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||||
...
|
...
|
||||||
includes: [testBigIntTypedArray.js]
|
includes: [testBigIntTypedArray.js]
|
||||||
features: [BigInt, TypedArray]
|
features: [BigInt, TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
testWithBigIntTypedArrayConstructors(function(TA) {
|
testWithBigIntTypedArrayConstructors(function(TA) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlast
|
esid: sec-%typedarray%.prototype.findlast
|
||||||
@ -13,7 +13,7 @@ info: |
|
|||||||
d. If testResult is true, return kValue.
|
d. If testResult is true, return kValue.
|
||||||
...
|
...
|
||||||
includes: [testBigIntTypedArray.js]
|
includes: [testBigIntTypedArray.js]
|
||||||
features: [BigInt, Symbol, TypedArray]
|
features: [BigInt, Symbol, TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
testWithBigIntTypedArrayConstructors(function(TA) {
|
testWithBigIntTypedArrayConstructors(function(TA) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlast
|
esid: sec-%typedarray%.prototype.findlast
|
||||||
@ -14,7 +14,7 @@ info: |
|
|||||||
...
|
...
|
||||||
7. Return undefined.
|
7. Return undefined.
|
||||||
includes: [testBigIntTypedArray.js]
|
includes: [testBigIntTypedArray.js]
|
||||||
features: [BigInt, Symbol, TypedArray]
|
features: [BigInt, Symbol, TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
testWithBigIntTypedArrayConstructors(function(TA) {
|
testWithBigIntTypedArrayConstructors(function(TA) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlast
|
esid: sec-%typedarray%.prototype.findlast
|
||||||
@ -14,7 +14,7 @@ info: |
|
|||||||
5. If IsDetachedBuffer(buffer) is true, throw a TypeError exception.
|
5. If IsDetachedBuffer(buffer) is true, throw a TypeError exception.
|
||||||
...
|
...
|
||||||
includes: [testTypedArray.js, detachArrayBuffer.js]
|
includes: [testTypedArray.js, detachArrayBuffer.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var predicate = function() {
|
var predicate = function() {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlast
|
esid: sec-%typedarray%.prototype.findlast
|
||||||
@ -10,7 +10,7 @@ info: |
|
|||||||
3. Let len be O.[[ArrayLength]].
|
3. Let len be O.[[ArrayLength]].
|
||||||
...
|
...
|
||||||
includes: [testTypedArray.js]
|
includes: [testTypedArray.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
Object.defineProperty(TypedArray.prototype, "length", {
|
Object.defineProperty(TypedArray.prototype, "length", {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlast
|
esid: sec-%typedarray%.prototype.findlast
|
||||||
@ -15,7 +15,7 @@ info: |
|
|||||||
exception.
|
exception.
|
||||||
...
|
...
|
||||||
includes: [testTypedArray.js]
|
includes: [testTypedArray.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var findLast = TypedArray.prototype.findLast;
|
var findLast = TypedArray.prototype.findLast;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlast
|
esid: sec-%typedarray%.prototype.findlast
|
||||||
@ -15,7 +15,7 @@ info: |
|
|||||||
exception.
|
exception.
|
||||||
...
|
...
|
||||||
includes: [testTypedArray.js]
|
includes: [testTypedArray.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var TypedArrayPrototype = TypedArray.prototype;
|
var TypedArrayPrototype = TypedArray.prototype;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2015 André Bargull. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
@ -20,7 +20,7 @@ info: |
|
|||||||
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
||||||
[[Configurable]]: true }.
|
[[Configurable]]: true }.
|
||||||
includes: [propertyHelper.js, testTypedArray.js]
|
includes: [propertyHelper.js, testTypedArray.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(TypedArray.prototype.findLast.length, 1);
|
assert.sameValue(TypedArray.prototype.findLast.length, 1);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2015 André Bargull. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
@ -17,7 +17,7 @@ info: |
|
|||||||
object, if it exists, has the attributes { [[Writable]]: false,
|
object, if it exists, has the attributes { [[Writable]]: false,
|
||||||
[[Enumerable]]: false, [[Configurable]]: true }.
|
[[Enumerable]]: false, [[Configurable]]: true }.
|
||||||
includes: [propertyHelper.js, testTypedArray.js]
|
includes: [propertyHelper.js, testTypedArray.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(TypedArray.prototype.findLast.name, "findLast");
|
assert.sameValue(TypedArray.prototype.findLast.name, "findLast");
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
@ -18,7 +18,7 @@ info: |
|
|||||||
7. If IsConstructor(constructor) is false, throw a TypeError exception.
|
7. If IsConstructor(constructor) is false, throw a TypeError exception.
|
||||||
...
|
...
|
||||||
includes: [isConstructor.js, testTypedArray.js]
|
includes: [isConstructor.js, testTypedArray.js]
|
||||||
features: [Reflect.construct, arrow-function, TypedArray]
|
features: [Reflect.construct, arrow-function, TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(
|
assert.sameValue(
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlast
|
esid: sec-%typedarray%.prototype.findlast
|
||||||
@ -14,7 +14,7 @@ info: |
|
|||||||
...
|
...
|
||||||
|
|
||||||
includes: [compareArray.js, testTypedArray.js]
|
includes: [compareArray.js, testTypedArray.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
testWithTypedArrayConstructors(function(TA) {
|
testWithTypedArrayConstructors(function(TA) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlast
|
esid: sec-%typedarray%.prototype.findlast
|
||||||
@ -13,7 +13,7 @@ info: |
|
|||||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||||
...
|
...
|
||||||
includes: [testTypedArray.js]
|
includes: [testTypedArray.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
testWithTypedArrayConstructors(function(TA) {
|
testWithTypedArrayConstructors(function(TA) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlast
|
esid: sec-%typedarray%.prototype.findlast
|
||||||
@ -13,7 +13,7 @@ info: |
|
|||||||
...
|
...
|
||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
includes: [testTypedArray.js]
|
includes: [testTypedArray.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var T = this;
|
var T = this;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlast
|
esid: sec-%typedarray%.prototype.findlast
|
||||||
@ -13,7 +13,7 @@ info: |
|
|||||||
...
|
...
|
||||||
flags: [onlyStrict]
|
flags: [onlyStrict]
|
||||||
includes: [testTypedArray.js]
|
includes: [testTypedArray.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
testWithTypedArrayConstructors(function(TA) {
|
testWithTypedArrayConstructors(function(TA) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlast
|
esid: sec-%typedarray%.prototype.findlast
|
||||||
@ -11,7 +11,7 @@ info: |
|
|||||||
4. If IsCallable(predicate) is false, throw a TypeError exception.
|
4. If IsCallable(predicate) is false, throw a TypeError exception.
|
||||||
...
|
...
|
||||||
includes: [testTypedArray.js]
|
includes: [testTypedArray.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
testWithTypedArrayConstructors(function(TA) {
|
testWithTypedArrayConstructors(function(TA) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlast
|
esid: sec-%typedarray%.prototype.findlast
|
||||||
@ -21,7 +21,7 @@ info: |
|
|||||||
If IsDetachedBuffer(buffer) is true, return undefined.
|
If IsDetachedBuffer(buffer) is true, return undefined.
|
||||||
|
|
||||||
includes: [testTypedArray.js, detachArrayBuffer.js]
|
includes: [testTypedArray.js, detachArrayBuffer.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
testWithTypedArrayConstructors(function(TA) {
|
testWithTypedArrayConstructors(function(TA) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlast
|
esid: sec-%typedarray%.prototype.findlast
|
||||||
@ -12,7 +12,7 @@ info: |
|
|||||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||||
...
|
...
|
||||||
includes: [testTypedArray.js]
|
includes: [testTypedArray.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
testWithTypedArrayConstructors(function(TA) {
|
testWithTypedArrayConstructors(function(TA) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findLast
|
esid: sec-%typedarray%.prototype.findLast
|
||||||
@ -9,7 +9,7 @@ info: |
|
|||||||
and in Annex B.2 has the attributes { [[Writable]]: true,
|
and in Annex B.2 has the attributes { [[Writable]]: true,
|
||||||
[[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified.
|
[[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified.
|
||||||
includes: [propertyHelper.js, testTypedArray.js]
|
includes: [propertyHelper.js, testTypedArray.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var TypedArrayPrototype = TypedArray.prototype;
|
var TypedArrayPrototype = TypedArray.prototype;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlast
|
esid: sec-%typedarray%.prototype.findlast
|
||||||
@ -12,7 +12,7 @@ info: |
|
|||||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||||
...
|
...
|
||||||
includes: [testTypedArray.js]
|
includes: [testTypedArray.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
testWithTypedArrayConstructors(function(TA) {
|
testWithTypedArrayConstructors(function(TA) {
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
// Copyright (C) 2021 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlast
|
esid: sec-%typedarray%.prototype.findlast
|
||||||
description: Return abrupt when "this" value fails buffer boundary checks
|
description: Return abrupt when "this" value fails buffer boundary checks
|
||||||
includes: [testTypedArray.js]
|
includes: [testTypedArray.js]
|
||||||
features: [TypedArray, resizable-arraybuffer]
|
features: [TypedArray, resizable-arraybuffer, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(
|
assert.sameValue(
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlast
|
esid: sec-%typedarray%.prototype.findlast
|
||||||
@ -13,7 +13,7 @@ info: |
|
|||||||
d. If testResult is true, return kValue.
|
d. If testResult is true, return kValue.
|
||||||
...
|
...
|
||||||
includes: [testTypedArray.js]
|
includes: [testTypedArray.js]
|
||||||
features: [Symbol, TypedArray]
|
features: [Symbol, TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
testWithTypedArrayConstructors(function(TA) {
|
testWithTypedArrayConstructors(function(TA) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlast
|
esid: sec-%typedarray%.prototype.findlast
|
||||||
@ -14,7 +14,7 @@ info: |
|
|||||||
...
|
...
|
||||||
7. Return undefined.
|
7. Return undefined.
|
||||||
includes: [testTypedArray.js]
|
includes: [testTypedArray.js]
|
||||||
features: [Symbol, TypedArray]
|
features: [Symbol, TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
testWithTypedArrayConstructors(function(TA) {
|
testWithTypedArrayConstructors(function(TA) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlast
|
esid: sec-%typedarray%.prototype.findlast
|
||||||
@ -13,7 +13,7 @@ info: |
|
|||||||
1. If Type(O) is not Object, throw a TypeError exception.
|
1. If Type(O) is not Object, throw a TypeError exception.
|
||||||
...
|
...
|
||||||
includes: [testTypedArray.js]
|
includes: [testTypedArray.js]
|
||||||
features: [Symbol, TypedArray]
|
features: [Symbol, TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var findLast = TypedArray.prototype.findLast;
|
var findLast = TypedArray.prototype.findLast;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlast
|
esid: sec-%typedarray%.prototype.findlast
|
||||||
@ -16,7 +16,7 @@ info: |
|
|||||||
exception.
|
exception.
|
||||||
...
|
...
|
||||||
includes: [testTypedArray.js]
|
includes: [testTypedArray.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var findlast = TypedArray.prototype.findlast;
|
var findlast = TypedArray.prototype.findlast;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlastindex
|
esid: sec-%typedarray%.prototype.findlastindex
|
||||||
@ -16,7 +16,7 @@ info: |
|
|||||||
5. If IsDetachedBuffer(buffer) is true, throw a TypeError exception.
|
5. If IsDetachedBuffer(buffer) is true, throw a TypeError exception.
|
||||||
...
|
...
|
||||||
includes: [testBigIntTypedArray.js, detachArrayBuffer.js]
|
includes: [testBigIntTypedArray.js, detachArrayBuffer.js]
|
||||||
features: [BigInt, TypedArray]
|
features: [BigInt, TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var predicate = function() {
|
var predicate = function() {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlastindex
|
esid: sec-%typedarray%.prototype.findlastindex
|
||||||
@ -11,7 +11,7 @@ info: |
|
|||||||
3. Let len be O.[[ArrayLength]].
|
3. Let len be O.[[ArrayLength]].
|
||||||
...
|
...
|
||||||
includes: [testBigIntTypedArray.js]
|
includes: [testBigIntTypedArray.js]
|
||||||
features: [BigInt, TypedArray]
|
features: [BigInt, TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
Object.defineProperty(TypedArray.prototype, "length", {
|
Object.defineProperty(TypedArray.prototype, "length", {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlastindex
|
esid: sec-%typedarray%.prototype.findlastindex
|
||||||
@ -13,7 +13,7 @@ info: |
|
|||||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||||
...
|
...
|
||||||
includes: [compareArray.js, testBigIntTypedArray.js]
|
includes: [compareArray.js, testBigIntTypedArray.js]
|
||||||
features: [BigInt, TypedArray]
|
features: [BigInt, TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
testWithBigIntTypedArrayConstructors(function(TA) {
|
testWithBigIntTypedArrayConstructors(function(TA) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlastindex
|
esid: sec-%typedarray%.prototype.findlastindex
|
||||||
@ -14,7 +14,7 @@ info: |
|
|||||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||||
...
|
...
|
||||||
includes: [testBigIntTypedArray.js]
|
includes: [testBigIntTypedArray.js]
|
||||||
features: [BigInt, TypedArray]
|
features: [BigInt, TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
testWithBigIntTypedArrayConstructors(function(TA) {
|
testWithBigIntTypedArrayConstructors(function(TA) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlastindex
|
esid: sec-%typedarray%.prototype.findlastindex
|
||||||
@ -15,7 +15,7 @@ info: |
|
|||||||
...
|
...
|
||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
includes: [testBigIntTypedArray.js]
|
includes: [testBigIntTypedArray.js]
|
||||||
features: [BigInt, TypedArray]
|
features: [BigInt, TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var T = this;
|
var T = this;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlastindex
|
esid: sec-%typedarray%.prototype.findlastindex
|
||||||
@ -15,7 +15,7 @@ info: |
|
|||||||
...
|
...
|
||||||
flags: [onlyStrict]
|
flags: [onlyStrict]
|
||||||
includes: [testBigIntTypedArray.js]
|
includes: [testBigIntTypedArray.js]
|
||||||
features: [BigInt, TypedArray]
|
features: [BigInt, TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
testWithBigIntTypedArrayConstructors(function(TA) {
|
testWithBigIntTypedArrayConstructors(function(TA) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlastindex
|
esid: sec-%typedarray%.prototype.findlastindex
|
||||||
@ -11,7 +11,7 @@ info: |
|
|||||||
4. If IsCallable(predicate) is false, throw a TypeError exception.
|
4. If IsCallable(predicate) is false, throw a TypeError exception.
|
||||||
...
|
...
|
||||||
includes: [testBigIntTypedArray.js]
|
includes: [testBigIntTypedArray.js]
|
||||||
features: [BigInt, TypedArray]
|
features: [BigInt, TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
testWithBigIntTypedArrayConstructors(function(TA) {
|
testWithBigIntTypedArrayConstructors(function(TA) {
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// Copyright (C) 2021 Apple Inc. All rights reserved.
|
|
||||||
// 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-%typedarray%.prototype.findlastindex
|
esid: sec-%typedarray%.prototype.findlastindex
|
||||||
@ -21,7 +20,7 @@ info: |
|
|||||||
If IsDetachedBuffer(buffer) is true, return undefined.
|
If IsDetachedBuffer(buffer) is true, return undefined.
|
||||||
|
|
||||||
includes: [testBigIntTypedArray.js, detachArrayBuffer.js]
|
includes: [testBigIntTypedArray.js, detachArrayBuffer.js]
|
||||||
features: [BigInt, TypedArray]
|
features: [BigInt, TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
testWithBigIntTypedArrayConstructors(function(TA) {
|
testWithBigIntTypedArrayConstructors(function(TA) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlastindex
|
esid: sec-%typedarray%.prototype.findlastindex
|
||||||
@ -14,7 +14,7 @@ info: |
|
|||||||
...
|
...
|
||||||
7. Return -1.
|
7. Return -1.
|
||||||
includes: [testBigIntTypedArray.js]
|
includes: [testBigIntTypedArray.js]
|
||||||
features: [BigInt, TypedArray]
|
features: [BigInt, TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
testWithBigIntTypedArrayConstructors(function(TA) {
|
testWithBigIntTypedArrayConstructors(function(TA) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlastindex
|
esid: sec-%typedarray%.prototype.findlastindex
|
||||||
@ -14,7 +14,7 @@ info: |
|
|||||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||||
...
|
...
|
||||||
includes: [testBigIntTypedArray.js]
|
includes: [testBigIntTypedArray.js]
|
||||||
features: [BigInt, TypedArray]
|
features: [BigInt, TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var predicate = function() {
|
var predicate = function() {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlastindex
|
esid: sec-%typedarray%.prototype.findlastindex
|
||||||
@ -15,7 +15,7 @@ info: |
|
|||||||
d. If testResult is true, return 𝔽(k).
|
d. If testResult is true, return 𝔽(k).
|
||||||
...
|
...
|
||||||
includes: [testBigIntTypedArray.js]
|
includes: [testBigIntTypedArray.js]
|
||||||
features: [BigInt, Symbol, TypedArray]
|
features: [BigInt, Symbol, TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
testWithBigIntTypedArrayConstructors(function(TA) {
|
testWithBigIntTypedArrayConstructors(function(TA) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlastindex
|
esid: sec-%typedarray%.prototype.findlastindex
|
||||||
@ -15,7 +15,7 @@ info: |
|
|||||||
...
|
...
|
||||||
7. Return -1𝔽.
|
7. Return -1𝔽.
|
||||||
includes: [testBigIntTypedArray.js]
|
includes: [testBigIntTypedArray.js]
|
||||||
features: [BigInt, TypedArray]
|
features: [BigInt, TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
testWithBigIntTypedArrayConstructors(function(TA) {
|
testWithBigIntTypedArrayConstructors(function(TA) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlastindex
|
esid: sec-%typedarray%.prototype.findlastindex
|
||||||
@ -16,7 +16,7 @@ info: |
|
|||||||
5. If IsDetachedBuffer(buffer) is true, throw a TypeError exception.
|
5. If IsDetachedBuffer(buffer) is true, throw a TypeError exception.
|
||||||
...
|
...
|
||||||
includes: [testTypedArray.js, detachArrayBuffer.js]
|
includes: [testTypedArray.js, detachArrayBuffer.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var predicate = function() {
|
var predicate = function() {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlastindex
|
esid: sec-%typedarray%.prototype.findlastindex
|
||||||
@ -11,7 +11,7 @@ info: |
|
|||||||
3. Let len be O.[[ArrayLength]].
|
3. Let len be O.[[ArrayLength]].
|
||||||
...
|
...
|
||||||
includes: [testTypedArray.js]
|
includes: [testTypedArray.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
Object.defineProperty(TypedArray.prototype, "length", {
|
Object.defineProperty(TypedArray.prototype, "length", {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlastindex
|
esid: sec-%typedarray%.prototype.findlastindex
|
||||||
@ -17,7 +17,7 @@ info: |
|
|||||||
exception.
|
exception.
|
||||||
...
|
...
|
||||||
includes: [testTypedArray.js]
|
includes: [testTypedArray.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var findLastIndex = TypedArray.prototype.findLastIndex;
|
var findLastIndex = TypedArray.prototype.findLastIndex;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlastindex
|
esid: sec-%typedarray%.prototype.findlastindex
|
||||||
@ -17,7 +17,7 @@ info: |
|
|||||||
exception.
|
exception.
|
||||||
...
|
...
|
||||||
includes: [testTypedArray.js]
|
includes: [testTypedArray.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var TypedArrayPrototype = TypedArray.prototype;
|
var TypedArrayPrototype = TypedArray.prototype;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2015 André Bargull. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
@ -20,7 +20,7 @@ info: |
|
|||||||
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
||||||
[[Configurable]]: true }.
|
[[Configurable]]: true }.
|
||||||
includes: [propertyHelper.js, testTypedArray.js]
|
includes: [propertyHelper.js, testTypedArray.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(TypedArray.prototype.findLastIndex.length, 1);
|
assert.sameValue(TypedArray.prototype.findLastIndex.length, 1);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2015 André Bargull. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
@ -17,7 +17,7 @@ info: |
|
|||||||
object, if it exists, has the attributes { [[Writable]]: false,
|
object, if it exists, has the attributes { [[Writable]]: false,
|
||||||
[[Enumerable]]: false, [[Configurable]]: true }.
|
[[Enumerable]]: false, [[Configurable]]: true }.
|
||||||
includes: [propertyHelper.js, testTypedArray.js]
|
includes: [propertyHelper.js, testTypedArray.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(TypedArray.prototype.findLastIndex.name, "findLastIndex");
|
assert.sameValue(TypedArray.prototype.findLastIndex.name, "findLastIndex");
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
@ -18,7 +18,7 @@ info: |
|
|||||||
7. If IsConstructor(constructor) is false, throw a TypeError exception.
|
7. If IsConstructor(constructor) is false, throw a TypeError exception.
|
||||||
...
|
...
|
||||||
includes: [isConstructor.js, testTypedArray.js]
|
includes: [isConstructor.js, testTypedArray.js]
|
||||||
features: [Reflect.construct, arrow-function, TypedArray]
|
features: [Reflect.construct, arrow-function, TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(
|
assert.sameValue(
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlastindex
|
esid: sec-%typedarray%.prototype.findlastindex
|
||||||
@ -13,7 +13,7 @@ info: |
|
|||||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||||
...
|
...
|
||||||
includes: [compareArray.js, testTypedArray.js]
|
includes: [compareArray.js, testTypedArray.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
testWithTypedArrayConstructors(function(TA) {
|
testWithTypedArrayConstructors(function(TA) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlastindex
|
esid: sec-%typedarray%.prototype.findlastindex
|
||||||
@ -14,7 +14,7 @@ info: |
|
|||||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||||
...
|
...
|
||||||
includes: [testTypedArray.js]
|
includes: [testTypedArray.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
testWithTypedArrayConstructors(function(TA) {
|
testWithTypedArrayConstructors(function(TA) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlastindex
|
esid: sec-%typedarray%.prototype.findlastindex
|
||||||
@ -15,7 +15,7 @@ info: |
|
|||||||
...
|
...
|
||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
includes: [testTypedArray.js]
|
includes: [testTypedArray.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var T = this;
|
var T = this;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlastindex
|
esid: sec-%typedarray%.prototype.findlastindex
|
||||||
@ -15,7 +15,7 @@ info: |
|
|||||||
...
|
...
|
||||||
flags: [onlyStrict]
|
flags: [onlyStrict]
|
||||||
includes: [testTypedArray.js]
|
includes: [testTypedArray.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
testWithTypedArrayConstructors(function(TA) {
|
testWithTypedArrayConstructors(function(TA) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlastindex
|
esid: sec-%typedarray%.prototype.findlastindex
|
||||||
@ -11,7 +11,7 @@ info: |
|
|||||||
4. If IsCallable(predicate) is false, throw a TypeError exception.
|
4. If IsCallable(predicate) is false, throw a TypeError exception.
|
||||||
...
|
...
|
||||||
includes: [testTypedArray.js]
|
includes: [testTypedArray.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
testWithTypedArrayConstructors(function(TA) {
|
testWithTypedArrayConstructors(function(TA) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlastindex
|
esid: sec-%typedarray%.prototype.findlastindex
|
||||||
@ -20,7 +20,7 @@ info: |
|
|||||||
If IsDetachedBuffer(buffer) is true, return undefined.
|
If IsDetachedBuffer(buffer) is true, return undefined.
|
||||||
|
|
||||||
includes: [testTypedArray.js, detachArrayBuffer.js]
|
includes: [testTypedArray.js, detachArrayBuffer.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
testWithTypedArrayConstructors(function(TA) {
|
testWithTypedArrayConstructors(function(TA) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlastindex
|
esid: sec-%typedarray%.prototype.findlastindex
|
||||||
@ -14,7 +14,7 @@ info: |
|
|||||||
...
|
...
|
||||||
7. Return -1.
|
7. Return -1.
|
||||||
includes: [testTypedArray.js]
|
includes: [testTypedArray.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
testWithTypedArrayConstructors(function(TA) {
|
testWithTypedArrayConstructors(function(TA) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlastindex
|
esid: sec-%typedarray%.prototype.findlastindex
|
||||||
@ -9,7 +9,7 @@ info: |
|
|||||||
and in Annex B.2 has the attributes { [[Writable]]: true,
|
and in Annex B.2 has the attributes { [[Writable]]: true,
|
||||||
[[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified.
|
[[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified.
|
||||||
includes: [propertyHelper.js, testTypedArray.js]
|
includes: [propertyHelper.js, testTypedArray.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var TypedArrayPrototype = TypedArray.prototype;
|
var TypedArrayPrototype = TypedArray.prototype;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||||
// 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-%typedarray%.prototype.findlastindex
|
esid: sec-%typedarray%.prototype.findlastindex
|
||||||
@ -14,7 +14,7 @@ info: |
|
|||||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||||
...
|
...
|
||||||
includes: [testTypedArray.js]
|
includes: [testTypedArray.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray, array-find-from-last]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var predicate = function() {
|
var predicate = function() {
|
||||||
|
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