54c19d7e04
Also drive-by adds a test for toSpliced on an empty array. Bug: chromium:1367651, v8:12764 Change-Id: I59ff19ef73dd6c5ea972dc6f39f1968858099ef8 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3919870 Commit-Queue: Adam Klein <adamk@chromium.org> Auto-Submit: Shu-yu Guo <syg@chromium.org> Reviewed-by: Adam Klein <adamk@chromium.org> Cr-Commit-Position: refs/heads/main@{#83441}
12 lines
328 B
JavaScript
12 lines
328 B
JavaScript
// Copyright 2022 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-change-array-by-copy
|
|
|
|
(function TestBigPacked() {
|
|
let a = [];
|
|
for (let i = 0; i < 50000; i++) a.push(i);
|
|
let r = a.toSpliced();
|
|
})();
|