super.prop assignment can silently overwrite non-writable properties

Jason Orendorff jason.orendorff at gmail.com
Mon Apr 20 19:49:52 UTC 2015


On Mon, Apr 20, 2015 at 2:42 PM, Caitlin Potter <caitpotter88 at gmail.com> wrote:
> Oh — he’s right, ValidateAndApplyPropertyDescriptor won’t throw in the example case, because the old descriptor is configurable. That’s kind of weird.

Yes, that's it.  9.1.6.3 step 8.a says that writability is checked
only if the existing property is non-configurable.

-j


More information about the es-discuss mailing list