On Jul 6, 2011, at 4:35 PM, Dave Fugate wrote:

>                 var x = /\1/;
>  
> According to 15.10.2.11, the RegExp snippet above should throw something as 
> there aren’t any capturing parenthesis within the RegExp, yet one is 
> referenced.  Just now noticed that step 4 of 15.10.2.9 is more precise and 
> shows a SyntaxError gets thrown.  Isn’t the snippet then potentially valid 
> ES5 code through Chapter 16’s SyntaxError extension clause?

It isn't valid ES5 code but it valid as an implementation defined extension to 
ES5.



_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to