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

Brendan Eich brendan at mozilla.com
Thu Jul 7 16:04:19 PDT 2011


On Jul 7, 2011, at 3:27 PM, Gavin Barraclough wrote:

> 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 -- to answer Mike's question, we use JSC's yarr in SpiderMonkey, so we'll pick this up soon too. Thanks!

/be



More information about the es-discuss mailing list