blob: bf5026b093408a573cbc9163532f83835107cd50 [file] [log] [blame]
//@ runDefault("--jitPolicyScale=0", "--useConcurrentGC=false", "--useConcurrentJIT=false", "--useGenerationalGC=false")
class A extends Object {
constructor(beforeSuper) {
let touchThis = () => {
try {
this.x = this.x;
} catch (e) {
}
try {
this.x = +this.x
} catch (e) {
}
};
if (beforeSuper) {
touchThis();
super();
} else {
super();
touchThis();
}
}
}
for (var i = 0; i < 10000; i++) {
new A(false);
new A(true);
}