Bug 186477 - Test js/regexp-zero-length-alternatives.html fails when RegExpJIT is disabled
Summary: Test js/regexp-zero-length-alternatives.html fails when RegExpJIT is disabled
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Michael Saboff
URL:
Keywords: InRadar
Depends on:
Blocks: 185989
  Show dependency treegraph
 
Reported: 2018-06-10 22:30 PDT by Michael Saboff
Modified: 2018-06-11 09:32 PDT (History)
7 users (show)

See Also:


Attachments
Patch (7.61 KB, patch)
2018-06-11 08:01 PDT, Michael Saboff
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Saboff 2018-06-10 22:30:16 PDT
A couple of subtests of subtests of js/regexp-zero-length-alternatives.html fail when using the YARR interpreter.

These subtests all involve the RegExp: /(?:a*?|b*?)*/.

var re32 = new RegExp(/(?:a*?|b*?)*/);
"aaaa".match(re32); // Hangs, should return "aaaa"
"abab".match(re32); // Hangs, should return "abab"
"ab".match(re32); // Returns "", should return "ab"
"xabx".match(re32); // Hangs, should return "ab"
Comment 1 Radar WebKit Bug Importer 2018-06-10 22:30:49 PDT
<rdar://problem/40992533>
Comment 2 Michael Saboff 2018-06-11 08:01:00 PDT
Created attachment 342429 [details]
Patch
Comment 3 WebKit Commit Bot 2018-06-11 09:32:27 PDT
Comment on attachment 342429 [details]
Patch

Clearing flags on attachment: 342429

Committed r232718: <https://trac.webkit.org/changeset/232718>
Comment 4 WebKit Commit Bot 2018-06-11 09:32:29 PDT
All reviewed patches have been landed.  Closing bug.