/\1/ could be a valid RegExp through Chapter 16 Extension clause?

Mike Samuel mikesamuel at gmail.com
Thu Jul 7 15:34:51 PDT 2011


2011/7/7 Gavin Barraclough <barraclough at apple.com>:
> On Jul 7, 2011, at 2:59 PM, Mike Samuel wrote:
>
>>> Agreed.
>>
>> Would that mean that
>>
>>    /^(?:\1x(y)x){2}$/.test("xyxxyx") && !/^(?:\1x(y)x){2}$/.test("xyxyxyx")
>>
>> If so, V8 agrees with that, the species of monkey in FF 5 does not,
>> the JsCore in Safari 533.21 does not, and Rhino does.
>
> Yes.  This is fixed for Safari in the WebKit nightly builds.

Great.  Filed a bug against FF :
https://bugzilla.mozilla.org/show_bug.cgi?id=670031


More information about the es-discuss mailing list