[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/1186332
Reviewed-by: Igor Sheludko <ishell@chromium.org>
Commit-Queue: Simon Zünd <szuend@google.com>
Cr-Commit-Position: refs/heads/master@{#55336}
This commit is contained in:
Simon Zünd 2018-08-23 10:52:51 +02:00 committed by Commit Bot
parent 1871e5289d
commit 9380e8d473

View File

@ -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();
}