blob: 908c72a15994b662473608a6d27d1428187a83d5 [file] [log] [blame]
//@ skip if ["arm", "mips", "powerpc", "powerpc64", "s390"].include?($architecture) and $hostOS == "linux"
//@ runDefault("--jitPolicyScale=0")
iterations = typeof(iterations) === 'undefined' ? 10000000 : iterations;
function xxx() {
const a = {};
Object.defineProperty(a, 0, { get: foo });
a.length = 80000000;
function foo() {
new Uint8Array(a);
}
new Promise(foo);
for (let i = 0; i < iterations; i++)
new ArrayBuffer(1000)
}
new Int8Array();
try {
xxx();
} catch {}
let arr1 = new Uint8Array(9);
arr1[0] = 0;
for (let i = 0; i < 1000000; ++i) {}