blob: 215e455fc68381a18ce8d9992cf4ce9aff8101f9 [file] [log] [blame]
//@ skip if $memoryLimited
//@ runDefault
// Should not crash with this test.
const a = [0];
a.__proto__ = {};
Object.defineProperty(a, 0, { get: foo });
Object.defineProperty(a, 80000000, {});
function foo() {
new Uint8Array(a);
}
new Promise(foo);
try {
for (let i = 0; i < 10000000; i++)
new ArrayBuffer(1000);
} catch {}
try {
$.agent.start()
} catch {
}