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

Keith Miller keith_miller at apple.com
Wed Feb 10 19:18:16 UTC 2016


According to my reading of the spec, table 4 says that any property that does not explicitly state what its attributes are should use [[Configurable]]:false by default. Section 21.2.4.2 does not list attributes for the RegExp[Symbol.species] accessor property. Thus, we should use the default value for [[Configurable]], which is false. The same appears to be true for each other default Symbol.species accessor property.

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 <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.

Thanks,
Keith Miller
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20160210/aafa7aed/attachment-0001.html>


More information about the es-discuss mailing list