Are the default Symbol.species accessors intended to be configurable?
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 188.8.131.52 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss