blob: 604cd43dea74db834e6f57959a736be8ed426870 [file] [log] [blame]
//@ skip if not $jitTests
//@ requireOptions("--forcePolyProto=1", "--useLLInt=0", "--repatchBufferingCountdown=0")
let correct = false
class A {
set x(v) {
if (v == 1) {
Object.defineProperty(B.prototype, "x", {
set: function() {
correct = true
}
});
}
}
}
class B extends A {
set y(v) {}
set y1(v) {}
set y2(v) {}
}
class C extends B {
}
let a = new C();
for (let i = 0; i < 30; i++) {
a.x = i;
}
// FIXME: Check that correct is true: https://bugs.webkit.org/show_bug.cgi?id=208337