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

Brendan Eich brendan at mozilla.com
Thu Jul 7 16:08:32 PDT 2011


On Jul 7, 2011, at 3:34 PM, Mike Samuel wrote:

> 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

Already fixed for FF7. Fast releases FTW!

/be


More information about the es-discuss mailing list