RegExp source property?

Allen Wirfs-Brock allen at wirfs-brock.com
Thu Mar 1 10:13:45 PST 2012


On Mar 1, 2012, at 10:03 AM, Erik Arvidsson wrote:

> I should have read 15.10.4.1 as well. It clearly states that the
> source property needs to be escaped.
> 
> This means that all browsers except JSC ToT are broken.

Note that the relevant paragraph of 15.10.4.1 added new requirements for ES5 that did not exist in ES3 where the source result was implementation defined. 

I suspect this is one of those subtle changes that implementers (and test writer) just over-looked when upgrading to ES5.

Allen




More information about the es-discuss mailing list