blob: faefcd88a1529d4ea3e56acebec8aa27d5e04c9b [file] [log] [blame]
//@ runDefault("--useRandomizingFuzzerAgent=1", "--usePolymorphicCallInliningForNonStubStatus=1", "--seedOfRandomizingFuzzerAgent=2896922505", "--forceBaseline=1", "--useConcurrentJIT=0")
function foo(o) {
o.f = 0;
return o.f;
}
noInline(foo);
let counter = 0;
function test(o, value) {
var result = foo(o);
if (result < value)
throw new Error(result);
if (counter < value)
throw new Error(counter);
Array.of(arguments);
}
for (var i = 0; i < 100000; ++i) {
var o = {
get f() {
return o
},
set f(v) {
counter++;
this.z = 0;
}
};
test(o, i, i);
}