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

Gavin Barraclough barraclough at apple.com
Thu Jul 7 15:27:26 PDT 2011


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.

cheers,
G.



More information about the es-discuss mailing list