blob: b38fc78a1449d71fd13cf43973098507fbcd393e [file] [log] [blame]
//@ runNoLLInt
function Foo() { }
Foo.prototype.x = 0;
Object.defineProperty(Foo.prototype, 'y', {
set(x) {
if (Foo.prototype.x++ === 9) {
Object.defineProperty(Foo.prototype, 'y', {
value: 13,
writable: true,
});
if (typeof $vm !== 'undefined')
$vm.flattenDictionaryObject(Foo.prototype);
}
},
configurable: true,
});
let foo = new Foo();
for (let i = 0; i < 11; i++)
foo.y = 42;