super.prop assignment can silently overwrite non-writable properties
Kevin Smith
zenparsing at gmail.com
Tue Apr 21 19:52:43 UTC 2015
>
> ```
> var parent = {};
> var v = 1;
> var x = Object.create(parent, {
> prop: { get: function() { return v; }, set: function(n) { v = n; },
> configurable: true }
> });
>
> Reflect.set(parent, "prop", 2, x); // under Allen's proposed changes, this
> will return false while I think it should just call the setter?
>
Another interpretation might be that since you've explicitly stated an
intention to bypass the receiver's setter, falling back to that setter
would be a bug.
Maybe?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150421/1062a1d3/attachment-0001.html>
More information about the es-discuss
mailing list