Are the default Symbol.species accessors intended to be configurable?

Kevin Smith zenparsing at gmail.com
Wed Feb 10 19:29:30 UTC 2016


>
> Is this a correct reading of the spec? Is this a bug in the spec?
> https://github.com/tc39/test262/blob/master/test/built-ins/RegExp/Symbol.species/symbol-species.js tests
> that the RegExp[Symbol.species] property is configurable. Additionally, it
> appears to break at least one major webpage if RegExp[Symbol.species] is
> not configurable.
>

Check out the last two paragraphs of
https://tc39.github.io/ecma262/#sec-ecmascript-standard-built-in-objects,
 which specifies the default property attributes for the standard built-ins.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20160210/d967976f/attachment.html>


More information about the es-discuss mailing list