blob: db61f1efd8c9ba4e4b54d7924241451d557e7daf [file] [log] [blame]
// Verify that changing a custom setter to a Function doesn't cause any issues.
function overrideFunction() {
let o = {};
let customThingy = $vm.createCustomTestGetterSetter();
o.__proto__ = customThingy;
o.customFunction = function() {
Object.defineProperty(customThingy, "customFunction", {
value: 42
});
};
}
noInline(overrideFunction);
for (let i = 0; i < 1000; ++i) {
overrideFunction();
}