Commit aafa16d6 authored by Zhi An Ng's avatar Zhi An Ng Committed by Commit Bot

[mjsunit] Check array length in array-concat

The speedup in https://crrev.com/c/2504853 left out checking the array
lengths, this adds that check.

Bug: v8:7783
Change-Id: I8de01fa2dff3e051246ee3a268cdce2128ad16ea
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2505252Reviewed-by: 's avatarCamillo Bruni <cbruni@chromium.org>
Commit-Queue: Zhi An Ng <zhin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#70869}
parent 0545f116
......@@ -238,6 +238,8 @@ expected[largeLength + 2] = "X";
var numElementsToCheck = 10;
// Checking entire massive array is too slow, so check:
// - the length,
assertEquals(expected.length, r3.length);
var slicesToCheck = [
// - the first few elements,
{start: 0, end: initialLen},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment