d63ca69c22
This proposal reached Stage 3 at the July 2021 TC39. https://github.com/tc39/proposal-array-find-from-last Bug: v8:11990 Change-Id: I1364b46b7ed4bc56e4b3024d14bde799f9878b5a Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3037160 Commit-Queue: Shu-yu Guo <syg@chromium.org> Reviewed-by: Marja Hölttä <marja@chromium.org> Cr-Commit-Position: refs/heads/master@{#76007}
16 lines
414 B
JavaScript
16 lines
414 B
JavaScript
// Copyright 2021 the V8 project authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
// Flags: --harmony-array-find-last
|
|
|
|
var findLast = 'local findLast';
|
|
var findLastIndex = 'local findLastIndex';
|
|
|
|
var array = [];
|
|
|
|
with (array) {
|
|
assertEquals('local findLast', findLast);
|
|
assertEquals('local findLastIndex', findLastIndex);
|
|
}
|