blob: 2b5d93d58c6285582af09b396d5c40626d3d220b [file] [log] [blame]
//@ runDefault("--useAccessInlining=0", "--jitPolicyScale=0")
let s = `
function Ctor() {
this.b = 0;
}
function test2() {
let a = new Ctor();
~a.b;
}
test2();
test2();
gc();
test2();
Object.defineProperty(Ctor.prototype, 'b', {});
Object.defineProperty(Ctor.prototype, '0', {});
test2();
`
for (let i = 0; i < 1000; i++) {
runString(s);
}