Hi Paul, both of these tests were disabled on test262 about a month ago (see 
https://bugs.ecmascript.org/show_bug.cgi?id=120).  In brief, chapter 16's 
extension clause regarding syntax errors implies these negative tests were 
invalid.  While I don't have the data available anymore,  we (Microsoft) did 
find some real world sites broke when the syntax error was thrown under these 
circumstances.  At the TC-39 meeting in May, we discussed making ES6 match the 
web in this regard - see 
http://wiki.ecmascript.org/doku.php?id=harmony:regexp_match_web_reality.  Hope 
this helps!

Dave

-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Paul Biggar
Sent: Tuesday, August 09, 2011 1:42 PM
To: [email protected]; [email protected]
Subject: Regexp backreferences

[apologies for the duplicate post on test262@, my first attempt bounced on 
es-discuss@]

Hi folks,

Currently in SpiderMonkey, overlarge regex backreferences do not cause syntax 
errors. We are considering making them cause syntax errors for
test262 compliance, but are worried it will break the web.

As far as I can tell, we inherited our behaviour from Apple's Yarr, which took 
the behaviour from us, who originally copied IE back when that was important. 
Chrome does the same as us.

Does anyone have any idea or data as to whether this will break the web? If no 
such data exists, we can always just try it and see if it breaks things. Should 
this be removed form test262?

Thanks,
Paul


Firefox bug:
 https://bugzilla.mozilla.org/show_bug.cgi?id=413155


test262 test cases:
   
http://hg.ecmascript.org/tests/test262/file/034836894a85/test/suite/sputnik_converted/15_Native/15.10_RegExp_Objects/15.10.2_Pattern_Semantics/15.10.2.11_DecimalEscape/S15.10.2.11_A1_T2.js

   
http://hg.ecmascript.org/tests/test262/file/034836894a85/test/suite/sputnik_converted/15_Native/15.10_RegExp_Objects/15.10.2_Pattern_Semantics/15.10.2.11_DecimalEscape/S15.10.2.11_A1_T3.js


--
Paul Biggar
Compiler Geek
[email protected]
@paulbiggar
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to