mirror of
https://github.com/tc39/test262.git
synced 2025-07-28 08:24:23 +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
|
||||
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
|
||||
#
|
||||
# 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.
|
||||
/*---
|
||||
esid: sec-array.prototype.findlast
|
||||
description: >
|
||||
The range of elements processed is set before the first call to `predicate`.
|
||||
info: |
|
||||
info: |
|
||||
Array.prototype.findLast ( predicate[ , thisArg ] )
|
||||
|
||||
...
|
||||
4. Let k be len - 1.
|
||||
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'];
|
||||
@ -32,7 +33,7 @@ assert.sameValue(results[2], 'Shoes');
|
||||
|
||||
results = [];
|
||||
arr = ['Skateboard', 'Barefoot'];
|
||||
arr.find(function(kValue) {
|
||||
arr.findLast(function(kValue) {
|
||||
if (results.length === 0) {
|
||||
arr.push('Motorcycle');
|
||||
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.
|
||||
|
||||
/*---
|
||||
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(
|
||||
|
@ -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.
|
||||
/*---
|
||||
esid: sec-array.prototype.findlast
|
||||
description: Array.prototype.findLast.length value and descriptor.
|
||||
info: |
|
||||
17 ECMAScript Standard Built-in Objects
|
||||
17 ECMAScript Standard Built-in Objects
|
||||
includes: [propertyHelper.js]
|
||||
features: [array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-array.prototype.findlast
|
||||
description: >
|
||||
Array.prototype.findLast.name value and descriptor.
|
||||
info: |
|
||||
info: |
|
||||
Array.prototype.findLast ( predicate [ , thisArg ] )
|
||||
|
||||
17 ECMAScript Standard Built-in Objects
|
||||
|
||||
includes: [propertyHelper.js]
|
||||
features: [array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
|
||||
/*---
|
||||
esid: sec-ecmascript-standard-built-in-objects
|
||||
description: >
|
||||
Array.prototype.findLast does not implement [[Construct]], is not new-able
|
||||
Array.prototype.findLast does not implement [[Construct]], is not new-able.
|
||||
info: |
|
||||
ECMAScript Function Objects
|
||||
|
||||
@ -18,7 +18,7 @@ info: |
|
||||
7. If IsConstructor(constructor) is false, throw a TypeError exception.
|
||||
...
|
||||
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');
|
||||
|
@ -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.
|
||||
/*---
|
||||
esid: sec-array.prototype.findlast
|
||||
@ -14,6 +14,7 @@ info: |
|
||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||
d. If testResult is true, return kValue.
|
||||
...
|
||||
features: [array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-array.prototype.findlast
|
||||
@ -14,6 +14,7 @@ info: |
|
||||
d. If testResult is true, return kValue.
|
||||
...
|
||||
flags: [noStrict]
|
||||
features: [array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-array.prototype.findlast
|
||||
@ -14,6 +14,7 @@ info: |
|
||||
d. If testResult is true, return kValue.
|
||||
...
|
||||
flags: [onlyStrict]
|
||||
features: [array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-array.prototype.findlast
|
||||
@ -13,6 +13,7 @@ info: |
|
||||
...
|
||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||
...
|
||||
features: [array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-array.prototype.findlast
|
||||
@ -10,6 +10,7 @@ info: |
|
||||
...
|
||||
3. If IsCallable(predicate) is false, throw a TypeError exception.
|
||||
...
|
||||
features: [array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-array.prototype.findlast
|
||||
@ -14,6 +14,7 @@ info: |
|
||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||
...
|
||||
6. Return undefined.
|
||||
features: [array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-array.prototype.findlast
|
||||
@ -6,6 +6,7 @@ description: Property type and descriptor.
|
||||
info: |
|
||||
17 ECMAScript Standard Built-in Objects
|
||||
includes: [propertyHelper.js]
|
||||
features: [array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-array.prototype.findlast
|
||||
@ -14,6 +14,7 @@ info: |
|
||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||
d. If testResult is true, return kValue.
|
||||
...
|
||||
features: [array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-array.prototype.findlast
|
||||
@ -15,6 +15,7 @@ info: |
|
||||
...
|
||||
d. If testResult is true, return kValue.
|
||||
...
|
||||
features: [array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-array.prototype.findlast
|
||||
@ -10,7 +10,7 @@ info: |
|
||||
1. Let O be ? ToObject(this value).
|
||||
2. Let len be ? LengthOfArrayLike(O).
|
||||
|
||||
features: [Symbol]
|
||||
features: [Symbol, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-array.prototype.findlast
|
||||
@ -9,6 +9,7 @@ info: |
|
||||
|
||||
1. Let O be ? ToObject(this value).
|
||||
2. Let len be ? LengthOfArrayLike(O).
|
||||
features: [array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-array.prototype.findlast
|
||||
@ -8,6 +8,7 @@ info: |
|
||||
Array.prototype.findLast ( predicate[ , thisArg ] )
|
||||
|
||||
1. Let O be ? ToObject(this value).
|
||||
features: [array-find-from-last]
|
||||
---*/
|
||||
|
||||
// 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.
|
||||
/*---
|
||||
esid: sec-array.prototype.findlast
|
||||
@ -13,7 +13,7 @@ info: |
|
||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||
d. If testResult is true, return kValue.
|
||||
...
|
||||
features: [Symbol]
|
||||
features: [Symbol, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-array.prototype.findlast
|
||||
@ -13,7 +13,7 @@ info: |
|
||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||
...
|
||||
6. Return undefined.
|
||||
features: [Symbol]
|
||||
features: [Symbol, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-array.prototype.findlastindex
|
||||
@ -13,6 +13,7 @@ info: |
|
||||
...
|
||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||
...
|
||||
features: [array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
|
||||
/*---
|
||||
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(
|
||||
|
@ -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.
|
||||
/*---
|
||||
esid: sec-array.prototype.findlastindex
|
||||
@ -6,6 +6,7 @@ description: Array.prototype.findLastIndex.length value and descriptor.
|
||||
info: |
|
||||
17 ECMAScript Standard Built-in Objects
|
||||
includes: [propertyHelper.js]
|
||||
features: [array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-array.prototype.findlastindex
|
||||
@ -10,10 +10,11 @@ info: |
|
||||
17 ECMAScript Standard Built-in Objects
|
||||
|
||||
includes: [propertyHelper.js]
|
||||
features: [array-find-from-last]
|
||||
---*/
|
||||
|
||||
assert.sameValue(
|
||||
Array.prototype.findIndex.name, 'findLastIndex',
|
||||
Array.prototype.findLastIndex.name, '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.
|
||||
|
||||
/*---
|
||||
esid: sec-ecmascript-standard-built-in-objects
|
||||
description: >
|
||||
Array.prototype.findLastIndex does not implement [[Construct]], is not new-able
|
||||
Array.prototype.findLastIndex does not implement [[Construct]], is not new-able.
|
||||
info: |
|
||||
ECMAScript Function Objects
|
||||
|
||||
@ -18,7 +18,7 @@ info: |
|
||||
7. If IsConstructor(constructor) is false, throw a TypeError exception.
|
||||
...
|
||||
includes: [isConstructor.js]
|
||||
features: [Reflect.construct, arrow-function]
|
||||
features: [Reflect.construct, arrow-function, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-array.prototype.findlastindex
|
||||
@ -13,6 +13,7 @@ info: |
|
||||
...
|
||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||
...
|
||||
features: [array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-array.prototype.findlastindex
|
||||
@ -14,6 +14,7 @@ info: |
|
||||
d. If testResult is true, return 𝔽(k).
|
||||
...
|
||||
flags: [noStrict]
|
||||
features: [array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-array.prototype.findlastindex
|
||||
@ -14,6 +14,7 @@ info: |
|
||||
d. If testResult is true, return 𝔽(k).
|
||||
...
|
||||
flags: [onlyStrict]
|
||||
features: [array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-array.prototype.findlastindex
|
||||
@ -13,6 +13,7 @@ info: |
|
||||
...
|
||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||
...
|
||||
features: [array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-array.prototype.findlastindex
|
||||
@ -10,6 +10,7 @@ info: |
|
||||
...
|
||||
3. If IsCallable(predicate) is false, throw a TypeError exception.
|
||||
...
|
||||
features: [array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-array.prototype.findlastindex
|
||||
@ -13,6 +13,7 @@ info: |
|
||||
...
|
||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||
6. Return -1.
|
||||
features: [array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-array.prototype.findlastindex
|
||||
@ -6,6 +6,7 @@ description: Property type and descriptor.
|
||||
info: |
|
||||
17 ECMAScript Standard Built-in Objects
|
||||
includes: [propertyHelper.js]
|
||||
features: [array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-array.prototype.findlastindex
|
||||
@ -14,6 +14,7 @@ info: |
|
||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||
d. If testResult is true, return 𝔽(k).
|
||||
...
|
||||
features: [array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-array.prototype.findlastindex
|
||||
@ -13,6 +13,7 @@ info: |
|
||||
a. Let Pk be ! ToString(𝔽(k)).
|
||||
b. Let kValue be ? Get(O, Pk).
|
||||
...
|
||||
features: [array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-array.prototype.findlastindex
|
||||
@ -10,7 +10,7 @@ info: |
|
||||
1. Let O be ? ToObject(this value).
|
||||
2. Let len be ? LengthOfArrayLike(O).
|
||||
...
|
||||
features: [Symbol]
|
||||
features: [Symbol, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-array.prototype.findlastindex
|
||||
@ -9,6 +9,7 @@ info: |
|
||||
|
||||
1. Let O be ? ToObject(this value).
|
||||
2. Let len be ? LengthOfArrayLike(O).
|
||||
features: [array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-array.prototype.findlastindex
|
||||
@ -8,6 +8,7 @@ info: |
|
||||
Array.prototype.findLastIndex ( predicate[ , thisArg ] )
|
||||
|
||||
1. Let O be ? ToObject(this value).
|
||||
features: [array-find-from-last]
|
||||
---*/
|
||||
|
||||
// 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.
|
||||
/*---
|
||||
esid: sec-array.prototype.findlastindex
|
||||
@ -13,7 +13,7 @@ info: |
|
||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||
d. If testResult is true, return 𝔽(k).
|
||||
...
|
||||
features: [Symbol]
|
||||
features: [Symbol, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-array.prototype.findlastindex
|
||||
@ -13,7 +13,7 @@ info: |
|
||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||
...
|
||||
6. Return -1.
|
||||
features: [Symbol]
|
||||
features: [Symbol, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlast
|
||||
@ -14,7 +14,7 @@ info: |
|
||||
5. If IsDetachedBuffer(buffer) is true, throw a TypeError exception.
|
||||
...
|
||||
includes: [testBigIntTypedArray.js, detachArrayBuffer.js]
|
||||
features: [BigInt, TypedArray]
|
||||
features: [BigInt, TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlast
|
||||
@ -11,7 +11,7 @@ info: |
|
||||
3. Let len be O.[[ArrayLength]].
|
||||
...
|
||||
includes: [testBigIntTypedArray.js]
|
||||
features: [BigInt, TypedArray]
|
||||
features: [BigInt, TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlast
|
||||
@ -14,7 +14,7 @@ info: |
|
||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||
...
|
||||
includes: [compareArray.js, testBigIntTypedArray.js]
|
||||
features: [BigInt, TypedArray]
|
||||
features: [BigInt, TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlast
|
||||
@ -13,7 +13,7 @@ info: |
|
||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||
...
|
||||
includes: [testBigIntTypedArray.js]
|
||||
features: [BigInt, TypedArray]
|
||||
features: [BigInt, TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlast
|
||||
@ -13,7 +13,7 @@ info: |
|
||||
...
|
||||
flags: [noStrict]
|
||||
includes: [testBigIntTypedArray.js]
|
||||
features: [BigInt, TypedArray]
|
||||
features: [BigInt, TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlast
|
||||
@ -13,7 +13,7 @@ info: |
|
||||
...
|
||||
flags: [onlyStrict]
|
||||
includes: [testBigIntTypedArray.js]
|
||||
features: [BigInt, TypedArray]
|
||||
features: [BigInt, TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlast
|
||||
@ -11,7 +11,7 @@ info: |
|
||||
4. If IsCallable(predicate) is false, throw a TypeError exception.
|
||||
...
|
||||
includes: [testBigIntTypedArray.js]
|
||||
features: [BigInt, TypedArray]
|
||||
features: [BigInt, TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlast
|
||||
@ -21,7 +21,7 @@ info: |
|
||||
If IsDetachedBuffer(buffer) is true, return undefined.
|
||||
|
||||
includes: [testBigIntTypedArray.js, detachArrayBuffer.js]
|
||||
features: [BigInt, TypedArray]
|
||||
features: [BigInt, TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlast
|
||||
@ -12,7 +12,7 @@ info: |
|
||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||
...
|
||||
includes: [testBigIntTypedArray.js]
|
||||
features: [BigInt, TypedArray]
|
||||
features: [BigInt, TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlast
|
||||
@ -12,7 +12,7 @@ info: |
|
||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||
...
|
||||
includes: [testBigIntTypedArray.js]
|
||||
features: [BigInt, TypedArray]
|
||||
features: [BigInt, TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlast
|
||||
@ -13,7 +13,7 @@ info: |
|
||||
d. If testResult is true, return kValue.
|
||||
...
|
||||
includes: [testBigIntTypedArray.js]
|
||||
features: [BigInt, Symbol, TypedArray]
|
||||
features: [BigInt, Symbol, TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlast
|
||||
@ -14,7 +14,7 @@ info: |
|
||||
...
|
||||
7. Return undefined.
|
||||
includes: [testBigIntTypedArray.js]
|
||||
features: [BigInt, Symbol, TypedArray]
|
||||
features: [BigInt, Symbol, TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlast
|
||||
@ -14,7 +14,7 @@ info: |
|
||||
5. If IsDetachedBuffer(buffer) is true, throw a TypeError exception.
|
||||
...
|
||||
includes: [testTypedArray.js, detachArrayBuffer.js]
|
||||
features: [TypedArray]
|
||||
features: [TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlast
|
||||
@ -10,7 +10,7 @@ info: |
|
||||
3. Let len be O.[[ArrayLength]].
|
||||
...
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlast
|
||||
@ -15,7 +15,7 @@ info: |
|
||||
exception.
|
||||
...
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlast
|
||||
@ -15,7 +15,7 @@ info: |
|
||||
exception.
|
||||
...
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
|
||||
/*---
|
||||
@ -20,7 +20,7 @@ info: |
|
||||
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
||||
[[Configurable]]: true }.
|
||||
includes: [propertyHelper.js, testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
|
||||
/*---
|
||||
@ -17,7 +17,7 @@ info: |
|
||||
object, if it exists, has the attributes { [[Writable]]: false,
|
||||
[[Enumerable]]: false, [[Configurable]]: true }.
|
||||
includes: [propertyHelper.js, testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
|
||||
/*---
|
||||
@ -18,7 +18,7 @@ info: |
|
||||
7. If IsConstructor(constructor) is false, throw a TypeError exception.
|
||||
...
|
||||
includes: [isConstructor.js, testTypedArray.js]
|
||||
features: [Reflect.construct, arrow-function, TypedArray]
|
||||
features: [Reflect.construct, arrow-function, TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlast
|
||||
@ -14,7 +14,7 @@ info: |
|
||||
...
|
||||
|
||||
includes: [compareArray.js, testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlast
|
||||
@ -13,7 +13,7 @@ info: |
|
||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||
...
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlast
|
||||
@ -13,7 +13,7 @@ info: |
|
||||
...
|
||||
flags: [noStrict]
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlast
|
||||
@ -13,7 +13,7 @@ info: |
|
||||
...
|
||||
flags: [onlyStrict]
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlast
|
||||
@ -11,7 +11,7 @@ info: |
|
||||
4. If IsCallable(predicate) is false, throw a TypeError exception.
|
||||
...
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlast
|
||||
@ -21,7 +21,7 @@ info: |
|
||||
If IsDetachedBuffer(buffer) is true, return undefined.
|
||||
|
||||
includes: [testTypedArray.js, detachArrayBuffer.js]
|
||||
features: [TypedArray]
|
||||
features: [TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlast
|
||||
@ -12,7 +12,7 @@ info: |
|
||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||
...
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findLast
|
||||
@ -9,7 +9,7 @@ info: |
|
||||
and in Annex B.2 has the attributes { [[Writable]]: true,
|
||||
[[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified.
|
||||
includes: [propertyHelper.js, testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlast
|
||||
@ -12,7 +12,7 @@ info: |
|
||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||
...
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlast
|
||||
description: Return abrupt when "this" value fails buffer boundary checks
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray, resizable-arraybuffer]
|
||||
features: [TypedArray, resizable-arraybuffer, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlast
|
||||
@ -13,7 +13,7 @@ info: |
|
||||
d. If testResult is true, return kValue.
|
||||
...
|
||||
includes: [testTypedArray.js]
|
||||
features: [Symbol, TypedArray]
|
||||
features: [Symbol, TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlast
|
||||
@ -14,7 +14,7 @@ info: |
|
||||
...
|
||||
7. Return undefined.
|
||||
includes: [testTypedArray.js]
|
||||
features: [Symbol, TypedArray]
|
||||
features: [Symbol, TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlast
|
||||
@ -13,7 +13,7 @@ info: |
|
||||
1. If Type(O) is not Object, throw a TypeError exception.
|
||||
...
|
||||
includes: [testTypedArray.js]
|
||||
features: [Symbol, TypedArray]
|
||||
features: [Symbol, TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlast
|
||||
@ -16,7 +16,7 @@ info: |
|
||||
exception.
|
||||
...
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlastindex
|
||||
@ -16,7 +16,7 @@ info: |
|
||||
5. If IsDetachedBuffer(buffer) is true, throw a TypeError exception.
|
||||
...
|
||||
includes: [testBigIntTypedArray.js, detachArrayBuffer.js]
|
||||
features: [BigInt, TypedArray]
|
||||
features: [BigInt, TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlastindex
|
||||
@ -11,7 +11,7 @@ info: |
|
||||
3. Let len be O.[[ArrayLength]].
|
||||
...
|
||||
includes: [testBigIntTypedArray.js]
|
||||
features: [BigInt, TypedArray]
|
||||
features: [BigInt, TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlastindex
|
||||
@ -13,7 +13,7 @@ info: |
|
||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||
...
|
||||
includes: [compareArray.js, testBigIntTypedArray.js]
|
||||
features: [BigInt, TypedArray]
|
||||
features: [BigInt, TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlastindex
|
||||
@ -14,7 +14,7 @@ info: |
|
||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||
...
|
||||
includes: [testBigIntTypedArray.js]
|
||||
features: [BigInt, TypedArray]
|
||||
features: [BigInt, TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlastindex
|
||||
@ -15,7 +15,7 @@ info: |
|
||||
...
|
||||
flags: [noStrict]
|
||||
includes: [testBigIntTypedArray.js]
|
||||
features: [BigInt, TypedArray]
|
||||
features: [BigInt, TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlastindex
|
||||
@ -15,7 +15,7 @@ info: |
|
||||
...
|
||||
flags: [onlyStrict]
|
||||
includes: [testBigIntTypedArray.js]
|
||||
features: [BigInt, TypedArray]
|
||||
features: [BigInt, TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlastindex
|
||||
@ -11,7 +11,7 @@ info: |
|
||||
4. If IsCallable(predicate) is false, throw a TypeError exception.
|
||||
...
|
||||
includes: [testBigIntTypedArray.js]
|
||||
features: [BigInt, TypedArray]
|
||||
features: [BigInt, TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
testWithBigIntTypedArrayConstructors(function(TA) {
|
||||
|
@ -1,5 +1,4 @@
|
||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
||||
// Copyright (C) 2021 Apple Inc. All rights reserved.
|
||||
// Copyright (C) 2021 Microsoft. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlastindex
|
||||
@ -21,7 +20,7 @@ info: |
|
||||
If IsDetachedBuffer(buffer) is true, return undefined.
|
||||
|
||||
includes: [testBigIntTypedArray.js, detachArrayBuffer.js]
|
||||
features: [BigInt, TypedArray]
|
||||
features: [BigInt, TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlastindex
|
||||
@ -14,7 +14,7 @@ info: |
|
||||
...
|
||||
7. Return -1.
|
||||
includes: [testBigIntTypedArray.js]
|
||||
features: [BigInt, TypedArray]
|
||||
features: [BigInt, TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlastindex
|
||||
@ -14,7 +14,7 @@ info: |
|
||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||
...
|
||||
includes: [testBigIntTypedArray.js]
|
||||
features: [BigInt, TypedArray]
|
||||
features: [BigInt, TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlastindex
|
||||
@ -15,7 +15,7 @@ info: |
|
||||
d. If testResult is true, return 𝔽(k).
|
||||
...
|
||||
includes: [testBigIntTypedArray.js]
|
||||
features: [BigInt, Symbol, TypedArray]
|
||||
features: [BigInt, Symbol, TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlastindex
|
||||
@ -15,7 +15,7 @@ info: |
|
||||
...
|
||||
7. Return -1𝔽.
|
||||
includes: [testBigIntTypedArray.js]
|
||||
features: [BigInt, TypedArray]
|
||||
features: [BigInt, TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlastindex
|
||||
@ -16,7 +16,7 @@ info: |
|
||||
5. If IsDetachedBuffer(buffer) is true, throw a TypeError exception.
|
||||
...
|
||||
includes: [testTypedArray.js, detachArrayBuffer.js]
|
||||
features: [TypedArray]
|
||||
features: [TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlastindex
|
||||
@ -11,7 +11,7 @@ info: |
|
||||
3. Let len be O.[[ArrayLength]].
|
||||
...
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlastindex
|
||||
@ -17,7 +17,7 @@ info: |
|
||||
exception.
|
||||
...
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlastindex
|
||||
@ -17,7 +17,7 @@ info: |
|
||||
exception.
|
||||
...
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
|
||||
/*---
|
||||
@ -20,7 +20,7 @@ info: |
|
||||
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
||||
[[Configurable]]: true }.
|
||||
includes: [propertyHelper.js, testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
|
||||
/*---
|
||||
@ -17,7 +17,7 @@ info: |
|
||||
object, if it exists, has the attributes { [[Writable]]: false,
|
||||
[[Enumerable]]: false, [[Configurable]]: true }.
|
||||
includes: [propertyHelper.js, testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
|
||||
/*---
|
||||
@ -18,7 +18,7 @@ info: |
|
||||
7. If IsConstructor(constructor) is false, throw a TypeError exception.
|
||||
...
|
||||
includes: [isConstructor.js, testTypedArray.js]
|
||||
features: [Reflect.construct, arrow-function, TypedArray]
|
||||
features: [Reflect.construct, arrow-function, TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlastindex
|
||||
@ -13,7 +13,7 @@ info: |
|
||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||
...
|
||||
includes: [compareArray.js, testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlastindex
|
||||
@ -14,7 +14,7 @@ info: |
|
||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||
...
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlastindex
|
||||
@ -15,7 +15,7 @@ info: |
|
||||
...
|
||||
flags: [noStrict]
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlastindex
|
||||
@ -15,7 +15,7 @@ info: |
|
||||
...
|
||||
flags: [onlyStrict]
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlastindex
|
||||
@ -11,7 +11,7 @@ info: |
|
||||
4. If IsCallable(predicate) is false, throw a TypeError exception.
|
||||
...
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlastindex
|
||||
@ -20,7 +20,7 @@ info: |
|
||||
If IsDetachedBuffer(buffer) is true, return undefined.
|
||||
|
||||
includes: [testTypedArray.js, detachArrayBuffer.js]
|
||||
features: [TypedArray]
|
||||
features: [TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlastindex
|
||||
@ -14,7 +14,7 @@ info: |
|
||||
...
|
||||
7. Return -1.
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlastindex
|
||||
@ -9,7 +9,7 @@ info: |
|
||||
and in Annex B.2 has the attributes { [[Writable]]: true,
|
||||
[[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified.
|
||||
includes: [propertyHelper.js, testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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.
|
||||
/*---
|
||||
esid: sec-%typedarray%.prototype.findlastindex
|
||||
@ -14,7 +14,7 @@ info: |
|
||||
c. Let testResult be ! ToBoolean(? Call(predicate, thisArg, « kValue, 𝔽(k), O »)).
|
||||
...
|
||||
includes: [testTypedArray.js]
|
||||
features: [TypedArray]
|
||||
features: [TypedArray, array-find-from-last]
|
||||
---*/
|
||||
|
||||
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