Commit 9380e8d4 authored by Simon Zünd's avatar Simon Zünd Committed by Commit Bot

[jstest] Fix Array.p.sort 'sort-lengths' benchmark

This CL fixes wrong parentheses that caused the sort-length benchmark
to generate "random" arrays that only contained zeroes.

R=ishell@chromium.org

Change-Id: Ie2a564da037425a4ef9c2417597cdc13b497e32b
Reviewed-on: https://chromium-review.googlesource.com/1186332Reviewed-by: 's avatarIgor Sheludko <ishell@chromium.org>
Commit-Queue: Simon Zünd <szuend@google.com>
Cr-Commit-Position: refs/heads/master@{#55336}
parent 1871e528
......@@ -10,7 +10,7 @@ function SortAsc() {
function Random(length) {
for (let i = 0; i < length; ++i) {
array_to_sort.push(Math.floor(Math.random()) * length);
array_to_sort.push(Math.floor(Math.random() * length));
}
AssertPackedSmiElements();
}
......
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