blob: 1db9ddcb458eb53701e4b291cac1053b0a43d092 [file] [log] [blame]
//@ skip if $memoryLimited and not ["mips"].include?($architecture)
//@ requireOptions("-e", "let iterations=40000") if ["mips"].include?($architecture)
//@ 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) {}