Bug 61129

Summary: Matching of those patterns which contains empty alternatives fail with beginning character optimization
Product: WebKit Reporter: Peter Varga <pvarga>
Component: JavaScriptCoreAssignee: Peter Varga <pvarga>
Status: RESOLVED WONTFIX    
Severity: Normal CC: barraclough, ggaren, msaboff, zherczeg
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on: 61306    
Bug Blocks:    
Attachments:
Description Flags
proposed patch none

Description Peter Varga 2011-05-19 09:01:06 PDT
E.g.:
"cd".match(/(ab|)cd);
result: null
expected: cd,

This failure appears since http://trac.webkit.org/changeset/86547 with Yarr Interpreter.
Comment 1 Peter Varga 2011-05-19 09:04:28 PDT
Created attachment 94077 [details]
proposed patch
Comment 2 Gavin Barraclough 2011-05-23 14:10:40 PDT
I'm going to clear the review flag on this bug for now, pending a decision on:

https://bugs.webkit.org/show_bug.cgi?id=61306
Comment 3 Gavin Barraclough 2011-05-24 13:02:11 PDT
Marking this won't fix based on resolution to r61306.