blob: 4165ac787b3948d26a8999091a2161782b5a6d24 [file] [log] [blame]
//@ if ["arm", "mips"].include?($architecture) then skip else runDefault end
const a = [0];
a.__proto__ = {};
Object.defineProperty(a, 0, {
get: foo
});
Object.defineProperty(a, 80000000, {});
function foo() {
new Uint8Array(a);
}
new Promise(foo);
var exception;
try {
for (let i = 0; i < 10000000; i++)
new ArrayBuffer(1000);
} catch (e) {
exception = e;
}
if (exception != "Error: Out of memory")
throw "FAILED";