blob: f622ffdb71f434e827d17050cb3f205531c1ff44 [file] [log] [blame]
//@ skip if $buildType == "debug" or ["arm", "mips"].include?($architecture)
let code = `
function foo() {
return [Date.prototype];
}
for (let i = 0; i < 50; ++i) {
foo();
}
let [proto] = foo();
Object.defineProperty(proto, '0', {});
`;
for (let i = 0; i < 2000; i++) {
runString(code);
}