// MS Edge 17-18 Reflect.set allows setting the property to object
// with non-writable property on the prototype
var MS_EDGE_BUG = fails(function () {
- var object = definePropertyModule.f({}, 'a', { configurable: true });
+ var Constructor = function () { /* empty */ };
+ var object = definePropertyModule.f(new Constructor(), 'a', { configurable: true });
// eslint-disable-next-line no-undef
- return Reflect.set(getPrototypeOf(object), 'a', 1, object) !== false;
+ return Reflect.set(Constructor.prototype, 'a', 1, object) !== false;
});
$({ target: 'Reflect', stat: true, forced: MS_EDGE_BUG }, {