blob: ac9ac63680293a783986c40f87e36d980352eef0 [file] [log] [blame]
function assert(expected, value) {
if (expected !== value)
throw new Error("Bad assertion. Expected: " + expected + " and value was: " + value);
}
let arr = [];
for (let i = 0; i < 1000000; i++) {
arr[i] = BigInt(i.toString());
}
gc();
for (let i = 0; i < 1000000; i++) {
assert(i.toString(), arr[i].toString());
}