blob: 6e0bf08b913976c1f253a00b36fd8249d4d11538 [file] [log] [blame]
//@ runDefault("--useGenerationalGC=0", "--useConcurrentGC=0", "--collectContinuously=1", "--useConcurrentJIT=0")
class C extends Object {
constructor(beforeSuper) {
let f = () => {
for (let j = 0; j < 100; j++) {
try {
this[0] = {};
} catch (e) {
}
}
};
if (beforeSuper) {
f();
super();
} else {
super();
f();
}
}
}
for (let i = 0; i < 100; i++) {
new C(false);
new C(true);
}