Commit 1fc3dc2f authored by Camillo Bruni's avatar Camillo Bruni Committed by Commit Bot

[js-perf-test] Fixing JavaScript errors in Array/run.js

Bug: chromium:840785
Change-Id: I043df7aa5203dec27b84636c64286d68a56fba31
Reviewed-on: https://chromium-review.googlesource.com/1172428Reviewed-by: 's avatarDan Elphick <delphick@chromium.org>
Commit-Queue: Camillo Bruni <cbruni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#55088}
parent 28b7cdc0
...@@ -55,16 +55,16 @@ function HoleyDoubleSetup() { ...@@ -55,16 +55,16 @@ function HoleyDoubleSetup() {
function FastSetup() { function FastSetup() {
array = Array.from({ length: array_size }, (_, i) => `value ${i}`); array = Array.from({ length: array_size }, (_, i) => `value ${i}`);
assert(%HasObjectElements(array); assert(%HasObjectElements(array));
} }
function HoleyFastSetup() { function HoleyFastSetup() {
FastSetup(); FastSetup();
MakeHoley(array); MakeHoley(array);
assert(%HasObjectElements(array); assert(%HasObjectElements(array));
} }
function DictionarySetUp() { function DictionarySetup() {
array = []; array = [];
// Add a large index to force dictionary elements. // Add a large index to force dictionary elements.
array[2**30] = 10; array[2**30] = 10;
......
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