From 4b54d54113a9d41152e91b57ee913c498a1e4168 Mon Sep 17 00:00:00 2001 From: rwaldron Date: Wed, 28 Jul 2021 13:53:12 -0400 Subject: [PATCH] Fix copyrights and features metadata --- features.txt | 4 ++++ .../prototype/findLast/array-altered-during-loop.js | 11 ++++++----- .../Array/prototype/findLast/call-with-boolean.js | 5 +++-- test/built-ins/Array/prototype/findLast/length.js | 5 +++-- test/built-ins/Array/prototype/findLast/name.js | 5 +++-- .../Array/prototype/findLast/not-a-constructor.js | 6 +++--- .../prototype/findLast/predicate-call-parameters.js | 3 ++- .../findLast/predicate-call-this-non-strict.js | 3 ++- .../prototype/findLast/predicate-call-this-strict.js | 3 ++- .../predicate-called-for-each-array-property.js | 3 ++- .../findLast/predicate-is-not-callable-throws.js | 3 ++- .../findLast/predicate-not-called-on-empty-array.js | 3 ++- test/built-ins/Array/prototype/findLast/prop-desc.js | 3 ++- .../findLast/return-abrupt-from-predicate-call.js | 3 ++- .../prototype/findLast/return-abrupt-from-property.js | 3 ++- .../return-abrupt-from-this-length-as-symbol.js | 4 ++-- .../findLast/return-abrupt-from-this-length.js | 3 ++- .../prototype/findLast/return-abrupt-from-this.js | 3 ++- .../return-found-value-predicate-result-is-true.js | 4 ++-- ...turn-undefined-if-predicate-returns-false-value.js | 4 ++-- .../findLastIndex/array-altered-during-loop.js | 3 ++- .../prototype/findLastIndex/call-with-boolean.js | 5 +++-- .../built-ins/Array/prototype/findLastIndex/length.js | 3 ++- test/built-ins/Array/prototype/findLastIndex/name.js | 5 +++-- .../prototype/findLastIndex/not-a-constructor.js | 6 +++--- .../findLastIndex/predicate-call-parameters.js | 3 ++- .../findLastIndex/predicate-call-this-non-strict.js | 3 ++- .../findLastIndex/predicate-call-this-strict.js | 3 ++- .../predicate-called-for-each-array-property.js | 3 ++- .../findLastIndex/predicate-is-not-callable-throws.js | 3 ++- .../predicate-not-called-on-empty-array.js | 3 ++- .../Array/prototype/findLastIndex/prop-desc.js | 3 ++- .../return-abrupt-from-predicate-call.js | 3 ++- .../findLastIndex/return-abrupt-from-property.js | 3 ++- .../return-abrupt-from-this-length-as-symbol.js | 4 ++-- .../findLastIndex/return-abrupt-from-this-length.js | 3 ++- .../findLastIndex/return-abrupt-from-this.js | 3 ++- .../return-index-predicate-result-is-true.js | 4 ++-- ...n-negative-one-if-predicate-returns-false-value.js | 4 ++-- .../prototype/findLast/BigInt/detached-buffer.js | 4 ++-- .../findLast/BigInt/get-length-ignores-length-prop.js | 4 ++-- .../findLast/BigInt/predicate-call-changes-value.js | 4 ++-- .../findLast/BigInt/predicate-call-parameters.js | 4 ++-- .../findLast/BigInt/predicate-call-this-non-strict.js | 4 ++-- .../findLast/BigInt/predicate-call-this-strict.js | 4 ++-- .../BigInt/predicate-is-not-callable-throws.js | 4 ++-- .../findLast/BigInt/predicate-may-detach-buffer.js | 4 ++-- .../BigInt/predicate-not-called-on-empty-array.js | 4 ++-- .../BigInt/return-abrupt-from-predicate-call.js | 4 ++-- .../return-found-value-predicate-result-is-true.js | 4 ++-- ...turn-undefined-if-predicate-returns-false-value.js | 4 ++-- .../TypedArray/prototype/findLast/detached-buffer.js | 4 ++-- .../findLast/get-length-ignores-length-prop.js | 4 ++-- .../TypedArray/prototype/findLast/invoked-as-func.js | 4 ++-- .../prototype/findLast/invoked-as-method.js | 4 ++-- .../built-ins/TypedArray/prototype/findLast/length.js | 4 ++-- test/built-ins/TypedArray/prototype/findLast/name.js | 4 ++-- .../prototype/findLast/not-a-constructor.js | 4 ++-- .../findLast/predicate-call-changes-value.js | 4 ++-- .../prototype/findLast/predicate-call-parameters.js | 4 ++-- .../findLast/predicate-call-this-non-strict.js | 4 ++-- .../prototype/findLast/predicate-call-this-strict.js | 4 ++-- .../findLast/predicate-is-not-callable-throws.js | 4 ++-- .../prototype/findLast/predicate-may-detach-buffer.js | 4 ++-- .../findLast/predicate-not-called-on-empty-array.js | 4 ++-- .../TypedArray/prototype/findLast/prop-desc.js | 4 ++-- .../findLast/return-abrupt-from-predicate-call.js | 4 ++-- .../findLast/return-abrupt-from-this-out-of-bounds.js | 4 ++-- .../return-found-value-predicate-result-is-true.js | 4 ++-- ...turn-undefined-if-predicate-returns-false-value.js | 4 ++-- .../prototype/findLast/this-is-not-object.js | 4 ++-- .../findLast/this-is-not-typedarray-instance.js | 4 ++-- .../prototype/findLastIndex/BigInt/detached-buffer.js | 4 ++-- .../BigInt/get-length-ignores-length-prop.js | 4 ++-- .../BigInt/predicate-call-changes-value.js | 4 ++-- .../findLastIndex/BigInt/predicate-call-parameters.js | 4 ++-- .../BigInt/predicate-call-this-non-strict.js | 4 ++-- .../BigInt/predicate-call-this-strict.js | 4 ++-- .../BigInt/predicate-is-not-callable-throws.js | 4 ++-- .../BigInt/predicate-may-detach-buffer.js | 5 ++--- .../BigInt/predicate-not-called-on-empty-array.js | 4 ++-- .../BigInt/return-abrupt-from-predicate-call.js | 4 ++-- .../BigInt/return-index-predicate-result-is-true.js | 4 ++-- ...n-negative-one-if-predicate-returns-false-value.js | 4 ++-- .../prototype/findLastIndex/detached-buffer.js | 4 ++-- .../findLastIndex/get-length-ignores-length-prop.js | 4 ++-- .../prototype/findLastIndex/invoked-as-func.js | 4 ++-- .../prototype/findLastIndex/invoked-as-method.js | 4 ++-- .../TypedArray/prototype/findLastIndex/length.js | 4 ++-- .../TypedArray/prototype/findLastIndex/name.js | 4 ++-- .../prototype/findLastIndex/not-a-constructor.js | 4 ++-- .../findLastIndex/predicate-call-changes-value.js | 4 ++-- .../findLastIndex/predicate-call-parameters.js | 4 ++-- .../findLastIndex/predicate-call-this-non-strict.js | 4 ++-- .../findLastIndex/predicate-call-this-strict.js | 4 ++-- .../findLastIndex/predicate-is-not-callable-throws.js | 4 ++-- .../findLastIndex/predicate-may-detach-buffer.js | 4 ++-- .../predicate-not-called-on-empty-array.js | 4 ++-- .../TypedArray/prototype/findLastIndex/prop-desc.js | 4 ++-- .../return-abrupt-from-predicate-call.js | 4 ++-- .../return-abrupt-from-this-out-of-bounds.js | 4 ++-- .../return-index-predicate-result-is-true.js | 4 ++-- ...n-negative-one-if-predicate-returns-false-value.js | 4 ++-- .../prototype/findLastIndex/this-is-not-object.js | 4 ++-- .../findLastIndex/this-is-not-typedarray-instance.js | 4 ++-- 105 files changed, 223 insertions(+), 190 deletions(-) diff --git a/features.txt b/features.txt index a638a69d04..798ca8bf80 100644 --- a/features.txt +++ b/features.txt @@ -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 diff --git a/test/built-ins/Array/prototype/findLast/array-altered-during-loop.js b/test/built-ins/Array/prototype/findLast/array-altered-during-loop.js index 6ca211fe0c..112068946d 100644 --- a/test/built-ins/Array/prototype/findLast/array-altered-during-loop.js +++ b/test/built-ins/Array/prototype/findLast/array-altered-during-loop.js @@ -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'; diff --git a/test/built-ins/Array/prototype/findLast/call-with-boolean.js b/test/built-ins/Array/prototype/findLast/call-with-boolean.js index 3bf568f292..5951bd9548 100644 --- a/test/built-ins/Array/prototype/findLast/call-with-boolean.js +++ b/test/built-ins/Array/prototype/findLast/call-with-boolean.js @@ -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( diff --git a/test/built-ins/Array/prototype/findLast/length.js b/test/built-ins/Array/prototype/findLast/length.js index 5a4bd966b8..26ba9e8288 100644 --- a/test/built-ins/Array/prototype/findLast/length.js +++ b/test/built-ins/Array/prototype/findLast/length.js @@ -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( diff --git a/test/built-ins/Array/prototype/findLast/name.js b/test/built-ins/Array/prototype/findLast/name.js index 5ad24822be..93ccefde28 100644 --- a/test/built-ins/Array/prototype/findLast/name.js +++ b/test/built-ins/Array/prototype/findLast/name.js @@ -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( diff --git a/test/built-ins/Array/prototype/findLast/not-a-constructor.js b/test/built-ins/Array/prototype/findLast/not-a-constructor.js index ebddc78ad4..ce8938f952 100644 --- a/test/built-ins/Array/prototype/findLast/not-a-constructor.js +++ b/test/built-ins/Array/prototype/findLast/not-a-constructor.js @@ -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'); diff --git a/test/built-ins/Array/prototype/findLast/predicate-call-parameters.js b/test/built-ins/Array/prototype/findLast/predicate-call-parameters.js index f63d79a553..1d063d3be7 100644 --- a/test/built-ins/Array/prototype/findLast/predicate-call-parameters.js +++ b/test/built-ins/Array/prototype/findLast/predicate-call-parameters.js @@ -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']; diff --git a/test/built-ins/Array/prototype/findLast/predicate-call-this-non-strict.js b/test/built-ins/Array/prototype/findLast/predicate-call-this-non-strict.js index 7953089675..3ba7717535 100644 --- a/test/built-ins/Array/prototype/findLast/predicate-call-this-non-strict.js +++ b/test/built-ins/Array/prototype/findLast/predicate-call-this-non-strict.js @@ -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; diff --git a/test/built-ins/Array/prototype/findLast/predicate-call-this-strict.js b/test/built-ins/Array/prototype/findLast/predicate-call-this-strict.js index 408f906aff..3ea488980a 100644 --- a/test/built-ins/Array/prototype/findLast/predicate-call-this-strict.js +++ b/test/built-ins/Array/prototype/findLast/predicate-call-this-strict.js @@ -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; diff --git a/test/built-ins/Array/prototype/findLast/predicate-called-for-each-array-property.js b/test/built-ins/Array/prototype/findLast/predicate-called-for-each-array-property.js index 179a8d96f2..8a768580ec 100644 --- a/test/built-ins/Array/prototype/findLast/predicate-called-for-each-array-property.js +++ b/test/built-ins/Array/prototype/findLast/predicate-called-for-each-array-property.js @@ -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']; diff --git a/test/built-ins/Array/prototype/findLast/predicate-is-not-callable-throws.js b/test/built-ins/Array/prototype/findLast/predicate-is-not-callable-throws.js index aeaa042d52..f0291f2f48 100644 --- a/test/built-ins/Array/prototype/findLast/predicate-is-not-callable-throws.js +++ b/test/built-ins/Array/prototype/findLast/predicate-is-not-callable-throws.js @@ -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() { diff --git a/test/built-ins/Array/prototype/findLast/predicate-not-called-on-empty-array.js b/test/built-ins/Array/prototype/findLast/predicate-not-called-on-empty-array.js index b210a2cf5a..f78db85a56 100644 --- a/test/built-ins/Array/prototype/findLast/predicate-not-called-on-empty-array.js +++ b/test/built-ins/Array/prototype/findLast/predicate-not-called-on-empty-array.js @@ -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; diff --git a/test/built-ins/Array/prototype/findLast/prop-desc.js b/test/built-ins/Array/prototype/findLast/prop-desc.js index 1db8494248..a3d1512fbf 100644 --- a/test/built-ins/Array/prototype/findLast/prop-desc.js +++ b/test/built-ins/Array/prototype/findLast/prop-desc.js @@ -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( diff --git a/test/built-ins/Array/prototype/findLast/return-abrupt-from-predicate-call.js b/test/built-ins/Array/prototype/findLast/return-abrupt-from-predicate-call.js index 1b06ebeea8..c73d7f7e80 100644 --- a/test/built-ins/Array/prototype/findLast/return-abrupt-from-predicate-call.js +++ b/test/built-ins/Array/prototype/findLast/return-abrupt-from-predicate-call.js @@ -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() { diff --git a/test/built-ins/Array/prototype/findLast/return-abrupt-from-property.js b/test/built-ins/Array/prototype/findLast/return-abrupt-from-property.js index 95925c9f12..c0d497cd3e 100644 --- a/test/built-ins/Array/prototype/findLast/return-abrupt-from-property.js +++ b/test/built-ins/Array/prototype/findLast/return-abrupt-from-property.js @@ -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 = { diff --git a/test/built-ins/Array/prototype/findLast/return-abrupt-from-this-length-as-symbol.js b/test/built-ins/Array/prototype/findLast/return-abrupt-from-this-length-as-symbol.js index 1775a13e2f..21d5711390 100644 --- a/test/built-ins/Array/prototype/findLast/return-abrupt-from-this-length-as-symbol.js +++ b/test/built-ins/Array/prototype/findLast/return-abrupt-from-this-length-as-symbol.js @@ -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 = {}; diff --git a/test/built-ins/Array/prototype/findLast/return-abrupt-from-this-length.js b/test/built-ins/Array/prototype/findLast/return-abrupt-from-this-length.js index bbcd949236..b4a29ed105 100644 --- a/test/built-ins/Array/prototype/findLast/return-abrupt-from-this-length.js +++ b/test/built-ins/Array/prototype/findLast/return-abrupt-from-this-length.js @@ -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 = {}; diff --git a/test/built-ins/Array/prototype/findLast/return-abrupt-from-this.js b/test/built-ins/Array/prototype/findLast/return-abrupt-from-this.js index 325e16dd9c..464ab9397c 100644 --- a/test/built-ins/Array/prototype/findLast/return-abrupt-from-this.js +++ b/test/built-ins/Array/prototype/findLast/return-abrupt-from-this.js @@ -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 diff --git a/test/built-ins/Array/prototype/findLast/return-found-value-predicate-result-is-true.js b/test/built-ins/Array/prototype/findLast/return-found-value-predicate-result-is-true.js index d6971c00d5..176c62384c 100644 --- a/test/built-ins/Array/prototype/findLast/return-found-value-predicate-result-is-true.js +++ b/test/built-ins/Array/prototype/findLast/return-found-value-predicate-result-is-true.js @@ -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']; diff --git a/test/built-ins/Array/prototype/findLast/return-undefined-if-predicate-returns-false-value.js b/test/built-ins/Array/prototype/findLast/return-undefined-if-predicate-returns-false-value.js index 97b3a07ab9..857985ff88 100644 --- a/test/built-ins/Array/prototype/findLast/return-undefined-if-predicate-returns-false-value.js +++ b/test/built-ins/Array/prototype/findLast/return-undefined-if-predicate-returns-false-value.js @@ -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']; diff --git a/test/built-ins/Array/prototype/findLastIndex/array-altered-during-loop.js b/test/built-ins/Array/prototype/findLastIndex/array-altered-during-loop.js index be825f22ce..26492add5a 100644 --- a/test/built-ins/Array/prototype/findLastIndex/array-altered-during-loop.js +++ b/test/built-ins/Array/prototype/findLastIndex/array-altered-during-loop.js @@ -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']; diff --git a/test/built-ins/Array/prototype/findLastIndex/call-with-boolean.js b/test/built-ins/Array/prototype/findLastIndex/call-with-boolean.js index 9663fc889c..28d7060934 100644 --- a/test/built-ins/Array/prototype/findLastIndex/call-with-boolean.js +++ b/test/built-ins/Array/prototype/findLastIndex/call-with-boolean.js @@ -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( diff --git a/test/built-ins/Array/prototype/findLastIndex/length.js b/test/built-ins/Array/prototype/findLastIndex/length.js index ea25b124c7..76f1f5a435 100644 --- a/test/built-ins/Array/prototype/findLastIndex/length.js +++ b/test/built-ins/Array/prototype/findLastIndex/length.js @@ -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( diff --git a/test/built-ins/Array/prototype/findLastIndex/name.js b/test/built-ins/Array/prototype/findLastIndex/name.js index be09787297..78f4ec9621 100644 --- a/test/built-ins/Array/prototype/findLastIndex/name.js +++ b/test/built-ins/Array/prototype/findLastIndex/name.js @@ -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"`' ); diff --git a/test/built-ins/Array/prototype/findLastIndex/not-a-constructor.js b/test/built-ins/Array/prototype/findLastIndex/not-a-constructor.js index 46efad2dee..8420624fdd 100644 --- a/test/built-ins/Array/prototype/findLastIndex/not-a-constructor.js +++ b/test/built-ins/Array/prototype/findLastIndex/not-a-constructor.js @@ -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( diff --git a/test/built-ins/Array/prototype/findLastIndex/predicate-call-parameters.js b/test/built-ins/Array/prototype/findLastIndex/predicate-call-parameters.js index 4279a9b281..b3ce6289a2 100644 --- a/test/built-ins/Array/prototype/findLastIndex/predicate-call-parameters.js +++ b/test/built-ins/Array/prototype/findLastIndex/predicate-call-parameters.js @@ -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']; diff --git a/test/built-ins/Array/prototype/findLastIndex/predicate-call-this-non-strict.js b/test/built-ins/Array/prototype/findLastIndex/predicate-call-this-non-strict.js index f1fc008b5a..9a22c37e94 100644 --- a/test/built-ins/Array/prototype/findLastIndex/predicate-call-this-non-strict.js +++ b/test/built-ins/Array/prototype/findLastIndex/predicate-call-this-non-strict.js @@ -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; diff --git a/test/built-ins/Array/prototype/findLastIndex/predicate-call-this-strict.js b/test/built-ins/Array/prototype/findLastIndex/predicate-call-this-strict.js index 833aad53df..7d12a6d184 100644 --- a/test/built-ins/Array/prototype/findLastIndex/predicate-call-this-strict.js +++ b/test/built-ins/Array/prototype/findLastIndex/predicate-call-this-strict.js @@ -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; diff --git a/test/built-ins/Array/prototype/findLastIndex/predicate-called-for-each-array-property.js b/test/built-ins/Array/prototype/findLastIndex/predicate-called-for-each-array-property.js index 0b40a8effd..5468f3667a 100644 --- a/test/built-ins/Array/prototype/findLastIndex/predicate-called-for-each-array-property.js +++ b/test/built-ins/Array/prototype/findLastIndex/predicate-called-for-each-array-property.js @@ -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']; diff --git a/test/built-ins/Array/prototype/findLastIndex/predicate-is-not-callable-throws.js b/test/built-ins/Array/prototype/findLastIndex/predicate-is-not-callable-throws.js index 981e18c4dd..1f10464bec 100644 --- a/test/built-ins/Array/prototype/findLastIndex/predicate-is-not-callable-throws.js +++ b/test/built-ins/Array/prototype/findLastIndex/predicate-is-not-callable-throws.js @@ -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() { diff --git a/test/built-ins/Array/prototype/findLastIndex/predicate-not-called-on-empty-array.js b/test/built-ins/Array/prototype/findLastIndex/predicate-not-called-on-empty-array.js index 5950c67b1d..466287a03d 100644 --- a/test/built-ins/Array/prototype/findLastIndex/predicate-not-called-on-empty-array.js +++ b/test/built-ins/Array/prototype/findLastIndex/predicate-not-called-on-empty-array.js @@ -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; diff --git a/test/built-ins/Array/prototype/findLastIndex/prop-desc.js b/test/built-ins/Array/prototype/findLastIndex/prop-desc.js index ba436716b8..ae197a97cc 100644 --- a/test/built-ins/Array/prototype/findLastIndex/prop-desc.js +++ b/test/built-ins/Array/prototype/findLastIndex/prop-desc.js @@ -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( diff --git a/test/built-ins/Array/prototype/findLastIndex/return-abrupt-from-predicate-call.js b/test/built-ins/Array/prototype/findLastIndex/return-abrupt-from-predicate-call.js index a536f6b043..bc4c72769f 100644 --- a/test/built-ins/Array/prototype/findLastIndex/return-abrupt-from-predicate-call.js +++ b/test/built-ins/Array/prototype/findLastIndex/return-abrupt-from-predicate-call.js @@ -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() { diff --git a/test/built-ins/Array/prototype/findLastIndex/return-abrupt-from-property.js b/test/built-ins/Array/prototype/findLastIndex/return-abrupt-from-property.js index d28a55a162..0f79218e3a 100644 --- a/test/built-ins/Array/prototype/findLastIndex/return-abrupt-from-property.js +++ b/test/built-ins/Array/prototype/findLastIndex/return-abrupt-from-property.js @@ -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 = { diff --git a/test/built-ins/Array/prototype/findLastIndex/return-abrupt-from-this-length-as-symbol.js b/test/built-ins/Array/prototype/findLastIndex/return-abrupt-from-this-length-as-symbol.js index f9c0957c87..dc3e66294e 100644 --- a/test/built-ins/Array/prototype/findLastIndex/return-abrupt-from-this-length-as-symbol.js +++ b/test/built-ins/Array/prototype/findLastIndex/return-abrupt-from-this-length-as-symbol.js @@ -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 = {}; diff --git a/test/built-ins/Array/prototype/findLastIndex/return-abrupt-from-this-length.js b/test/built-ins/Array/prototype/findLastIndex/return-abrupt-from-this-length.js index b0f4eefa30..d7c8194f32 100644 --- a/test/built-ins/Array/prototype/findLastIndex/return-abrupt-from-this-length.js +++ b/test/built-ins/Array/prototype/findLastIndex/return-abrupt-from-this-length.js @@ -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 = {}; diff --git a/test/built-ins/Array/prototype/findLastIndex/return-abrupt-from-this.js b/test/built-ins/Array/prototype/findLastIndex/return-abrupt-from-this.js index 0316c13650..6323cacbf4 100644 --- a/test/built-ins/Array/prototype/findLastIndex/return-abrupt-from-this.js +++ b/test/built-ins/Array/prototype/findLastIndex/return-abrupt-from-this.js @@ -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 diff --git a/test/built-ins/Array/prototype/findLastIndex/return-index-predicate-result-is-true.js b/test/built-ins/Array/prototype/findLastIndex/return-index-predicate-result-is-true.js index c48da02d56..d08562c6a2 100644 --- a/test/built-ins/Array/prototype/findLastIndex/return-index-predicate-result-is-true.js +++ b/test/built-ins/Array/prototype/findLastIndex/return-index-predicate-result-is-true.js @@ -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']; diff --git a/test/built-ins/Array/prototype/findLastIndex/return-negative-one-if-predicate-returns-false-value.js b/test/built-ins/Array/prototype/findLastIndex/return-negative-one-if-predicate-returns-false-value.js index cb505379a7..f1f7c0ceef 100644 --- a/test/built-ins/Array/prototype/findLastIndex/return-negative-one-if-predicate-returns-false-value.js +++ b/test/built-ins/Array/prototype/findLastIndex/return-negative-one-if-predicate-returns-false-value.js @@ -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']; diff --git a/test/built-ins/TypedArray/prototype/findLast/BigInt/detached-buffer.js b/test/built-ins/TypedArray/prototype/findLast/BigInt/detached-buffer.js index 0ff3317345..436a2d08b4 100644 --- a/test/built-ins/TypedArray/prototype/findLast/BigInt/detached-buffer.js +++ b/test/built-ins/TypedArray/prototype/findLast/BigInt/detached-buffer.js @@ -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() { diff --git a/test/built-ins/TypedArray/prototype/findLast/BigInt/get-length-ignores-length-prop.js b/test/built-ins/TypedArray/prototype/findLast/BigInt/get-length-ignores-length-prop.js index 5ad0b791d5..5b32d293e9 100644 --- a/test/built-ins/TypedArray/prototype/findLast/BigInt/get-length-ignores-length-prop.js +++ b/test/built-ins/TypedArray/prototype/findLast/BigInt/get-length-ignores-length-prop.js @@ -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", { diff --git a/test/built-ins/TypedArray/prototype/findLast/BigInt/predicate-call-changes-value.js b/test/built-ins/TypedArray/prototype/findLast/BigInt/predicate-call-changes-value.js index 7f9c6612c5..1f9c93fd0e 100644 --- a/test/built-ins/TypedArray/prototype/findLast/BigInt/predicate-call-changes-value.js +++ b/test/built-ins/TypedArray/prototype/findLast/BigInt/predicate-call-changes-value.js @@ -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) { diff --git a/test/built-ins/TypedArray/prototype/findLast/BigInt/predicate-call-parameters.js b/test/built-ins/TypedArray/prototype/findLast/BigInt/predicate-call-parameters.js index 6d7c4aa449..271e4e35c4 100644 --- a/test/built-ins/TypedArray/prototype/findLast/BigInt/predicate-call-parameters.js +++ b/test/built-ins/TypedArray/prototype/findLast/BigInt/predicate-call-parameters.js @@ -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) { diff --git a/test/built-ins/TypedArray/prototype/findLast/BigInt/predicate-call-this-non-strict.js b/test/built-ins/TypedArray/prototype/findLast/BigInt/predicate-call-this-non-strict.js index b54476b15d..9fb2641036 100644 --- a/test/built-ins/TypedArray/prototype/findLast/BigInt/predicate-call-this-non-strict.js +++ b/test/built-ins/TypedArray/prototype/findLast/BigInt/predicate-call-this-non-strict.js @@ -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; diff --git a/test/built-ins/TypedArray/prototype/findLast/BigInt/predicate-call-this-strict.js b/test/built-ins/TypedArray/prototype/findLast/BigInt/predicate-call-this-strict.js index 58293d0d60..a19f10ddf8 100644 --- a/test/built-ins/TypedArray/prototype/findLast/BigInt/predicate-call-this-strict.js +++ b/test/built-ins/TypedArray/prototype/findLast/BigInt/predicate-call-this-strict.js @@ -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) { diff --git a/test/built-ins/TypedArray/prototype/findLast/BigInt/predicate-is-not-callable-throws.js b/test/built-ins/TypedArray/prototype/findLast/BigInt/predicate-is-not-callable-throws.js index 40f739a1d1..d5f0955a48 100644 --- a/test/built-ins/TypedArray/prototype/findLast/BigInt/predicate-is-not-callable-throws.js +++ b/test/built-ins/TypedArray/prototype/findLast/BigInt/predicate-is-not-callable-throws.js @@ -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) { diff --git a/test/built-ins/TypedArray/prototype/findLast/BigInt/predicate-may-detach-buffer.js b/test/built-ins/TypedArray/prototype/findLast/BigInt/predicate-may-detach-buffer.js index 2202e6e2b8..52239bc2f2 100644 --- a/test/built-ins/TypedArray/prototype/findLast/BigInt/predicate-may-detach-buffer.js +++ b/test/built-ins/TypedArray/prototype/findLast/BigInt/predicate-may-detach-buffer.js @@ -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) { diff --git a/test/built-ins/TypedArray/prototype/findLast/BigInt/predicate-not-called-on-empty-array.js b/test/built-ins/TypedArray/prototype/findLast/BigInt/predicate-not-called-on-empty-array.js index 4573d9d461..da182c5a27 100644 --- a/test/built-ins/TypedArray/prototype/findLast/BigInt/predicate-not-called-on-empty-array.js +++ b/test/built-ins/TypedArray/prototype/findLast/BigInt/predicate-not-called-on-empty-array.js @@ -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) { diff --git a/test/built-ins/TypedArray/prototype/findLast/BigInt/return-abrupt-from-predicate-call.js b/test/built-ins/TypedArray/prototype/findLast/BigInt/return-abrupt-from-predicate-call.js index 52badfa193..99eda5d617 100644 --- a/test/built-ins/TypedArray/prototype/findLast/BigInt/return-abrupt-from-predicate-call.js +++ b/test/built-ins/TypedArray/prototype/findLast/BigInt/return-abrupt-from-predicate-call.js @@ -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) { diff --git a/test/built-ins/TypedArray/prototype/findLast/BigInt/return-found-value-predicate-result-is-true.js b/test/built-ins/TypedArray/prototype/findLast/BigInt/return-found-value-predicate-result-is-true.js index f7319806b7..22e4dc8821 100644 --- a/test/built-ins/TypedArray/prototype/findLast/BigInt/return-found-value-predicate-result-is-true.js +++ b/test/built-ins/TypedArray/prototype/findLast/BigInt/return-found-value-predicate-result-is-true.js @@ -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) { diff --git a/test/built-ins/TypedArray/prototype/findLast/BigInt/return-undefined-if-predicate-returns-false-value.js b/test/built-ins/TypedArray/prototype/findLast/BigInt/return-undefined-if-predicate-returns-false-value.js index a0255c2844..cf614120af 100644 --- a/test/built-ins/TypedArray/prototype/findLast/BigInt/return-undefined-if-predicate-returns-false-value.js +++ b/test/built-ins/TypedArray/prototype/findLast/BigInt/return-undefined-if-predicate-returns-false-value.js @@ -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) { diff --git a/test/built-ins/TypedArray/prototype/findLast/detached-buffer.js b/test/built-ins/TypedArray/prototype/findLast/detached-buffer.js index 5f27af8bcc..41141d0c6b 100644 --- a/test/built-ins/TypedArray/prototype/findLast/detached-buffer.js +++ b/test/built-ins/TypedArray/prototype/findLast/detached-buffer.js @@ -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() { diff --git a/test/built-ins/TypedArray/prototype/findLast/get-length-ignores-length-prop.js b/test/built-ins/TypedArray/prototype/findLast/get-length-ignores-length-prop.js index d0790e92f3..f75482c2d4 100644 --- a/test/built-ins/TypedArray/prototype/findLast/get-length-ignores-length-prop.js +++ b/test/built-ins/TypedArray/prototype/findLast/get-length-ignores-length-prop.js @@ -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", { diff --git a/test/built-ins/TypedArray/prototype/findLast/invoked-as-func.js b/test/built-ins/TypedArray/prototype/findLast/invoked-as-func.js index c82e455f75..4c3cbd1dac 100644 --- a/test/built-ins/TypedArray/prototype/findLast/invoked-as-func.js +++ b/test/built-ins/TypedArray/prototype/findLast/invoked-as-func.js @@ -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; diff --git a/test/built-ins/TypedArray/prototype/findLast/invoked-as-method.js b/test/built-ins/TypedArray/prototype/findLast/invoked-as-method.js index 8bea6aff2f..e13c117749 100644 --- a/test/built-ins/TypedArray/prototype/findLast/invoked-as-method.js +++ b/test/built-ins/TypedArray/prototype/findLast/invoked-as-method.js @@ -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; diff --git a/test/built-ins/TypedArray/prototype/findLast/length.js b/test/built-ins/TypedArray/prototype/findLast/length.js index 7d79be0822..78b3757713 100644 --- a/test/built-ins/TypedArray/prototype/findLast/length.js +++ b/test/built-ins/TypedArray/prototype/findLast/length.js @@ -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); diff --git a/test/built-ins/TypedArray/prototype/findLast/name.js b/test/built-ins/TypedArray/prototype/findLast/name.js index 1a2d4dcdd0..ae5cda0e5e 100644 --- a/test/built-ins/TypedArray/prototype/findLast/name.js +++ b/test/built-ins/TypedArray/prototype/findLast/name.js @@ -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"); diff --git a/test/built-ins/TypedArray/prototype/findLast/not-a-constructor.js b/test/built-ins/TypedArray/prototype/findLast/not-a-constructor.js index d589ac0cd4..14c29d6ecd 100644 --- a/test/built-ins/TypedArray/prototype/findLast/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/findLast/not-a-constructor.js @@ -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( diff --git a/test/built-ins/TypedArray/prototype/findLast/predicate-call-changes-value.js b/test/built-ins/TypedArray/prototype/findLast/predicate-call-changes-value.js index e1cebb207b..0b847866a6 100644 --- a/test/built-ins/TypedArray/prototype/findLast/predicate-call-changes-value.js +++ b/test/built-ins/TypedArray/prototype/findLast/predicate-call-changes-value.js @@ -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) { diff --git a/test/built-ins/TypedArray/prototype/findLast/predicate-call-parameters.js b/test/built-ins/TypedArray/prototype/findLast/predicate-call-parameters.js index e412e11bfe..df93b2ea2a 100644 --- a/test/built-ins/TypedArray/prototype/findLast/predicate-call-parameters.js +++ b/test/built-ins/TypedArray/prototype/findLast/predicate-call-parameters.js @@ -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) { diff --git a/test/built-ins/TypedArray/prototype/findLast/predicate-call-this-non-strict.js b/test/built-ins/TypedArray/prototype/findLast/predicate-call-this-non-strict.js index dc40148fa8..41c078cbe1 100644 --- a/test/built-ins/TypedArray/prototype/findLast/predicate-call-this-non-strict.js +++ b/test/built-ins/TypedArray/prototype/findLast/predicate-call-this-non-strict.js @@ -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; diff --git a/test/built-ins/TypedArray/prototype/findLast/predicate-call-this-strict.js b/test/built-ins/TypedArray/prototype/findLast/predicate-call-this-strict.js index ac955341d0..60368d90e7 100644 --- a/test/built-ins/TypedArray/prototype/findLast/predicate-call-this-strict.js +++ b/test/built-ins/TypedArray/prototype/findLast/predicate-call-this-strict.js @@ -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) { diff --git a/test/built-ins/TypedArray/prototype/findLast/predicate-is-not-callable-throws.js b/test/built-ins/TypedArray/prototype/findLast/predicate-is-not-callable-throws.js index a898edc3ea..2e3b6cb298 100644 --- a/test/built-ins/TypedArray/prototype/findLast/predicate-is-not-callable-throws.js +++ b/test/built-ins/TypedArray/prototype/findLast/predicate-is-not-callable-throws.js @@ -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) { diff --git a/test/built-ins/TypedArray/prototype/findLast/predicate-may-detach-buffer.js b/test/built-ins/TypedArray/prototype/findLast/predicate-may-detach-buffer.js index e95fc26e6a..4ee9782bbb 100644 --- a/test/built-ins/TypedArray/prototype/findLast/predicate-may-detach-buffer.js +++ b/test/built-ins/TypedArray/prototype/findLast/predicate-may-detach-buffer.js @@ -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) { diff --git a/test/built-ins/TypedArray/prototype/findLast/predicate-not-called-on-empty-array.js b/test/built-ins/TypedArray/prototype/findLast/predicate-not-called-on-empty-array.js index d080edae17..115c7761d6 100644 --- a/test/built-ins/TypedArray/prototype/findLast/predicate-not-called-on-empty-array.js +++ b/test/built-ins/TypedArray/prototype/findLast/predicate-not-called-on-empty-array.js @@ -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) { diff --git a/test/built-ins/TypedArray/prototype/findLast/prop-desc.js b/test/built-ins/TypedArray/prototype/findLast/prop-desc.js index e1ad6cb5b1..66437d3d12 100644 --- a/test/built-ins/TypedArray/prototype/findLast/prop-desc.js +++ b/test/built-ins/TypedArray/prototype/findLast/prop-desc.js @@ -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; diff --git a/test/built-ins/TypedArray/prototype/findLast/return-abrupt-from-predicate-call.js b/test/built-ins/TypedArray/prototype/findLast/return-abrupt-from-predicate-call.js index d68221f84d..358f63c539 100644 --- a/test/built-ins/TypedArray/prototype/findLast/return-abrupt-from-predicate-call.js +++ b/test/built-ins/TypedArray/prototype/findLast/return-abrupt-from-predicate-call.js @@ -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) { diff --git a/test/built-ins/TypedArray/prototype/findLast/return-abrupt-from-this-out-of-bounds.js b/test/built-ins/TypedArray/prototype/findLast/return-abrupt-from-this-out-of-bounds.js index 4e5e3f93e5..29c3175a0e 100644 --- a/test/built-ins/TypedArray/prototype/findLast/return-abrupt-from-this-out-of-bounds.js +++ b/test/built-ins/TypedArray/prototype/findLast/return-abrupt-from-this-out-of-bounds.js @@ -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( diff --git a/test/built-ins/TypedArray/prototype/findLast/return-found-value-predicate-result-is-true.js b/test/built-ins/TypedArray/prototype/findLast/return-found-value-predicate-result-is-true.js index 759943c779..ce779d5cf2 100644 --- a/test/built-ins/TypedArray/prototype/findLast/return-found-value-predicate-result-is-true.js +++ b/test/built-ins/TypedArray/prototype/findLast/return-found-value-predicate-result-is-true.js @@ -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) { diff --git a/test/built-ins/TypedArray/prototype/findLast/return-undefined-if-predicate-returns-false-value.js b/test/built-ins/TypedArray/prototype/findLast/return-undefined-if-predicate-returns-false-value.js index 2414cdd766..bedf00f2bc 100644 --- a/test/built-ins/TypedArray/prototype/findLast/return-undefined-if-predicate-returns-false-value.js +++ b/test/built-ins/TypedArray/prototype/findLast/return-undefined-if-predicate-returns-false-value.js @@ -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) { diff --git a/test/built-ins/TypedArray/prototype/findLast/this-is-not-object.js b/test/built-ins/TypedArray/prototype/findLast/this-is-not-object.js index e4e2fe3efa..58eee651ab 100644 --- a/test/built-ins/TypedArray/prototype/findLast/this-is-not-object.js +++ b/test/built-ins/TypedArray/prototype/findLast/this-is-not-object.js @@ -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; diff --git a/test/built-ins/TypedArray/prototype/findLast/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/findLast/this-is-not-typedarray-instance.js index b08272ed31..cba97a1113 100644 --- a/test/built-ins/TypedArray/prototype/findLast/this-is-not-typedarray-instance.js +++ b/test/built-ins/TypedArray/prototype/findLast/this-is-not-typedarray-instance.js @@ -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; diff --git a/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/detached-buffer.js b/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/detached-buffer.js index 5387903055..5487ecf73c 100644 --- a/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/detached-buffer.js +++ b/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/detached-buffer.js @@ -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() { diff --git a/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/get-length-ignores-length-prop.js b/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/get-length-ignores-length-prop.js index b66d1b82a0..57ccdf17f4 100644 --- a/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/get-length-ignores-length-prop.js +++ b/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/get-length-ignores-length-prop.js @@ -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", { diff --git a/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/predicate-call-changes-value.js b/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/predicate-call-changes-value.js index 01f1ef7a89..4a02b43ffd 100644 --- a/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/predicate-call-changes-value.js +++ b/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/predicate-call-changes-value.js @@ -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) { diff --git a/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/predicate-call-parameters.js b/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/predicate-call-parameters.js index dac4322227..6856b65f20 100644 --- a/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/predicate-call-parameters.js +++ b/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/predicate-call-parameters.js @@ -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) { diff --git a/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/predicate-call-this-non-strict.js b/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/predicate-call-this-non-strict.js index 59d39d9bff..5a87c6b768 100644 --- a/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/predicate-call-this-non-strict.js +++ b/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/predicate-call-this-non-strict.js @@ -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; diff --git a/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/predicate-call-this-strict.js b/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/predicate-call-this-strict.js index d293feab41..772d2fe6e0 100644 --- a/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/predicate-call-this-strict.js +++ b/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/predicate-call-this-strict.js @@ -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) { diff --git a/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/predicate-is-not-callable-throws.js b/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/predicate-is-not-callable-throws.js index ad21601ba0..e842bea8d0 100644 --- a/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/predicate-is-not-callable-throws.js +++ b/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/predicate-is-not-callable-throws.js @@ -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) { diff --git a/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/predicate-may-detach-buffer.js b/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/predicate-may-detach-buffer.js index 07b884ad1e..b41019cc7b 100644 --- a/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/predicate-may-detach-buffer.js +++ b/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/predicate-may-detach-buffer.js @@ -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) { diff --git a/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/predicate-not-called-on-empty-array.js b/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/predicate-not-called-on-empty-array.js index d58d33c49b..6ed26db504 100644 --- a/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/predicate-not-called-on-empty-array.js +++ b/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/predicate-not-called-on-empty-array.js @@ -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) { diff --git a/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/return-abrupt-from-predicate-call.js b/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/return-abrupt-from-predicate-call.js index 2cef6577a8..6afbccd8db 100644 --- a/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/return-abrupt-from-predicate-call.js +++ b/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/return-abrupt-from-predicate-call.js @@ -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() { diff --git a/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/return-index-predicate-result-is-true.js b/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/return-index-predicate-result-is-true.js index 72e40a213c..1bff91690f 100644 --- a/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/return-index-predicate-result-is-true.js +++ b/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/return-index-predicate-result-is-true.js @@ -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) { diff --git a/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/return-negative-one-if-predicate-returns-false-value.js b/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/return-negative-one-if-predicate-returns-false-value.js index 1f3b233ae9..904966fb48 100644 --- a/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/return-negative-one-if-predicate-returns-false-value.js +++ b/test/built-ins/TypedArray/prototype/findLastIndex/BigInt/return-negative-one-if-predicate-returns-false-value.js @@ -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) { diff --git a/test/built-ins/TypedArray/prototype/findLastIndex/detached-buffer.js b/test/built-ins/TypedArray/prototype/findLastIndex/detached-buffer.js index 4ebe9520c1..bc4d0344c1 100644 --- a/test/built-ins/TypedArray/prototype/findLastIndex/detached-buffer.js +++ b/test/built-ins/TypedArray/prototype/findLastIndex/detached-buffer.js @@ -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() { diff --git a/test/built-ins/TypedArray/prototype/findLastIndex/get-length-ignores-length-prop.js b/test/built-ins/TypedArray/prototype/findLastIndex/get-length-ignores-length-prop.js index 72da8498af..7017a91aa8 100644 --- a/test/built-ins/TypedArray/prototype/findLastIndex/get-length-ignores-length-prop.js +++ b/test/built-ins/TypedArray/prototype/findLastIndex/get-length-ignores-length-prop.js @@ -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", { diff --git a/test/built-ins/TypedArray/prototype/findLastIndex/invoked-as-func.js b/test/built-ins/TypedArray/prototype/findLastIndex/invoked-as-func.js index 6ccc592984..3db8101c91 100644 --- a/test/built-ins/TypedArray/prototype/findLastIndex/invoked-as-func.js +++ b/test/built-ins/TypedArray/prototype/findLastIndex/invoked-as-func.js @@ -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; diff --git a/test/built-ins/TypedArray/prototype/findLastIndex/invoked-as-method.js b/test/built-ins/TypedArray/prototype/findLastIndex/invoked-as-method.js index 7ed214f694..0e0a1bff03 100644 --- a/test/built-ins/TypedArray/prototype/findLastIndex/invoked-as-method.js +++ b/test/built-ins/TypedArray/prototype/findLastIndex/invoked-as-method.js @@ -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; diff --git a/test/built-ins/TypedArray/prototype/findLastIndex/length.js b/test/built-ins/TypedArray/prototype/findLastIndex/length.js index b138ad7056..4ebe82250a 100644 --- a/test/built-ins/TypedArray/prototype/findLastIndex/length.js +++ b/test/built-ins/TypedArray/prototype/findLastIndex/length.js @@ -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); diff --git a/test/built-ins/TypedArray/prototype/findLastIndex/name.js b/test/built-ins/TypedArray/prototype/findLastIndex/name.js index 7ec2cc3148..6b7b4f37d5 100644 --- a/test/built-ins/TypedArray/prototype/findLastIndex/name.js +++ b/test/built-ins/TypedArray/prototype/findLastIndex/name.js @@ -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"); diff --git a/test/built-ins/TypedArray/prototype/findLastIndex/not-a-constructor.js b/test/built-ins/TypedArray/prototype/findLastIndex/not-a-constructor.js index 1e8e1fa160..ecad495f94 100644 --- a/test/built-ins/TypedArray/prototype/findLastIndex/not-a-constructor.js +++ b/test/built-ins/TypedArray/prototype/findLastIndex/not-a-constructor.js @@ -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( diff --git a/test/built-ins/TypedArray/prototype/findLastIndex/predicate-call-changes-value.js b/test/built-ins/TypedArray/prototype/findLastIndex/predicate-call-changes-value.js index b6dd047ad2..278ec19023 100644 --- a/test/built-ins/TypedArray/prototype/findLastIndex/predicate-call-changes-value.js +++ b/test/built-ins/TypedArray/prototype/findLastIndex/predicate-call-changes-value.js @@ -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) { diff --git a/test/built-ins/TypedArray/prototype/findLastIndex/predicate-call-parameters.js b/test/built-ins/TypedArray/prototype/findLastIndex/predicate-call-parameters.js index e7b66bd96e..3b9d5a6e22 100644 --- a/test/built-ins/TypedArray/prototype/findLastIndex/predicate-call-parameters.js +++ b/test/built-ins/TypedArray/prototype/findLastIndex/predicate-call-parameters.js @@ -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) { diff --git a/test/built-ins/TypedArray/prototype/findLastIndex/predicate-call-this-non-strict.js b/test/built-ins/TypedArray/prototype/findLastIndex/predicate-call-this-non-strict.js index 42548e7970..5cbfaa3085 100644 --- a/test/built-ins/TypedArray/prototype/findLastIndex/predicate-call-this-non-strict.js +++ b/test/built-ins/TypedArray/prototype/findLastIndex/predicate-call-this-non-strict.js @@ -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; diff --git a/test/built-ins/TypedArray/prototype/findLastIndex/predicate-call-this-strict.js b/test/built-ins/TypedArray/prototype/findLastIndex/predicate-call-this-strict.js index 596794f892..9679ca642d 100644 --- a/test/built-ins/TypedArray/prototype/findLastIndex/predicate-call-this-strict.js +++ b/test/built-ins/TypedArray/prototype/findLastIndex/predicate-call-this-strict.js @@ -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) { diff --git a/test/built-ins/TypedArray/prototype/findLastIndex/predicate-is-not-callable-throws.js b/test/built-ins/TypedArray/prototype/findLastIndex/predicate-is-not-callable-throws.js index 1bdadaf72c..9558dce212 100644 --- a/test/built-ins/TypedArray/prototype/findLastIndex/predicate-is-not-callable-throws.js +++ b/test/built-ins/TypedArray/prototype/findLastIndex/predicate-is-not-callable-throws.js @@ -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) { diff --git a/test/built-ins/TypedArray/prototype/findLastIndex/predicate-may-detach-buffer.js b/test/built-ins/TypedArray/prototype/findLastIndex/predicate-may-detach-buffer.js index 05b4b830bd..a1e536465a 100644 --- a/test/built-ins/TypedArray/prototype/findLastIndex/predicate-may-detach-buffer.js +++ b/test/built-ins/TypedArray/prototype/findLastIndex/predicate-may-detach-buffer.js @@ -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) { diff --git a/test/built-ins/TypedArray/prototype/findLastIndex/predicate-not-called-on-empty-array.js b/test/built-ins/TypedArray/prototype/findLastIndex/predicate-not-called-on-empty-array.js index 1b2f60277b..66c00b9ca8 100644 --- a/test/built-ins/TypedArray/prototype/findLastIndex/predicate-not-called-on-empty-array.js +++ b/test/built-ins/TypedArray/prototype/findLastIndex/predicate-not-called-on-empty-array.js @@ -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) { diff --git a/test/built-ins/TypedArray/prototype/findLastIndex/prop-desc.js b/test/built-ins/TypedArray/prototype/findLastIndex/prop-desc.js index fae0c3232a..d11392e32d 100644 --- a/test/built-ins/TypedArray/prototype/findLastIndex/prop-desc.js +++ b/test/built-ins/TypedArray/prototype/findLastIndex/prop-desc.js @@ -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; diff --git a/test/built-ins/TypedArray/prototype/findLastIndex/return-abrupt-from-predicate-call.js b/test/built-ins/TypedArray/prototype/findLastIndex/return-abrupt-from-predicate-call.js index f3226501f9..9610fec98f 100644 --- a/test/built-ins/TypedArray/prototype/findLastIndex/return-abrupt-from-predicate-call.js +++ b/test/built-ins/TypedArray/prototype/findLastIndex/return-abrupt-from-predicate-call.js @@ -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() { diff --git a/test/built-ins/TypedArray/prototype/findLastIndex/return-abrupt-from-this-out-of-bounds.js b/test/built-ins/TypedArray/prototype/findLastIndex/return-abrupt-from-this-out-of-bounds.js index 0b7df1a444..5f130f1f52 100644 --- a/test/built-ins/TypedArray/prototype/findLastIndex/return-abrupt-from-this-out-of-bounds.js +++ b/test/built-ins/TypedArray/prototype/findLastIndex/return-abrupt-from-this-out-of-bounds.js @@ -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.findlastindex 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( diff --git a/test/built-ins/TypedArray/prototype/findLastIndex/return-index-predicate-result-is-true.js b/test/built-ins/TypedArray/prototype/findLastIndex/return-index-predicate-result-is-true.js index bbbcbe5f09..7a154a8e1e 100644 --- a/test/built-ins/TypedArray/prototype/findLastIndex/return-index-predicate-result-is-true.js +++ b/test/built-ins/TypedArray/prototype/findLastIndex/return-index-predicate-result-is-true.js @@ -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: [testTypedArray.js] -features: [Symbol, TypedArray] +features: [Symbol, TypedArray, array-find-from-last] ---*/ testWithTypedArrayConstructors(function(TA) { diff --git a/test/built-ins/TypedArray/prototype/findLastIndex/return-negative-one-if-predicate-returns-false-value.js b/test/built-ins/TypedArray/prototype/findLastIndex/return-negative-one-if-predicate-returns-false-value.js index dce6767939..32d3c82581 100644 --- a/test/built-ins/TypedArray/prototype/findLastIndex/return-negative-one-if-predicate-returns-false-value.js +++ b/test/built-ins/TypedArray/prototype/findLastIndex/return-negative-one-if-predicate-returns-false-value.js @@ -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: [testTypedArray.js] -features: [TypedArray] +features: [TypedArray, array-find-from-last] ---*/ testWithTypedArrayConstructors(function(TA) { diff --git a/test/built-ins/TypedArray/prototype/findLastIndex/this-is-not-object.js b/test/built-ins/TypedArray/prototype/findLastIndex/this-is-not-object.js index d23f0064d3..c71c0dad3d 100644 --- a/test/built-ins/TypedArray/prototype/findLastIndex/this-is-not-object.js +++ b/test/built-ins/TypedArray/prototype/findLastIndex/this-is-not-object.js @@ -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: | 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 findLastIndex = TypedArray.prototype.findLastIndex; diff --git a/test/built-ins/TypedArray/prototype/findLastIndex/this-is-not-typedarray-instance.js b/test/built-ins/TypedArray/prototype/findLastIndex/this-is-not-typedarray-instance.js index 74a40ad233..32dcf2432a 100644 --- a/test/built-ins/TypedArray/prototype/findLastIndex/this-is-not-typedarray-instance.js +++ b/test/built-ins/TypedArray/prototype/findLastIndex/this-is-not-typedarray-instance.js @@ -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 @@ -18,7 +18,7 @@ info: | exception. ... includes: [testTypedArray.js] -features: [TypedArray] +features: [TypedArray, array-find-from-last] ---*/ var findLastIndex = TypedArray.prototype.findLastIndex;