[Webkit-unassigned] [Bug 80822] New: Tests for RegExp multiline failed

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 12 01:24:40 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=80822

           Summary: Tests for RegExp multiline failed
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: hojong.han at samsung.com


Testcase js1_2/regexp/RegExp_multiline.js failed 
Failure messages were:
(multiline == true) '123\n456'.match(/^4../) = null FAILED! expected: 456 
(multiline == true) 'a11\na22\na23\na24'.match(/^a../g) = a11 FAILED! expected: a11,a22,a23,a24 
(multiline == true) '123\n456'.match(/.3$/) = null FAILED! expected: 23 
(multiline == true) 'a11\na22\na23\na24'.match(/a..$/g) = a24 FAILED! expected: a11,a22,a23,a24 
(multiline == true) 'a11\na22\na23\na24'.match(new RegExp('a..$','g')) = a24 FAILED! expected: a11,a22,a23,a24 

Testcase js1_2/regexp/RegExp_multiline_as_array.js failed 
Failure messages were:
(['$*'] == true) '123\n456'.match(/^4../) = null FAILED! expected: 456 
(['$*'] == true) 'a11\na22\na23\na24'.match(/^a../g) = a11 FAILED! expected: a11,a22,a23,a24 
(['$*'] == true) '123\n456'.match(/.3$/) = null FAILED! expected: 23 
(['$*'] == true) 'a11\na22\na23\na24'.match(/a..$/g) = a24 FAILED! expected: a11,a22,a23,a24 
(['$*'] == true) 'a11\na22\na23\na24'.match(new RegExp('a..$','g')) = a24 FAILED! expected: a11,a22,a23,a24 

Testcase js1_2/regexp/beginLine.js failed 
Failure messages were:
123xyz'.match(new RegExp('^\d+')) = null FAILED! expected: 123 

Testcase js1_2/regexp/endLine.js failed 
Failure messages were:
xyz'.match(new RegExp('\d+$')) = null FAILED! expected: 890

These failed testcases are caused by creating RegExp instances without multiline flag, 'm'.
In these testcases,"RegExp.multiline = true" is used to set multiline flag. It's not in spec as I know of.
Fix testcases or JSC, otherwise just let things untouched. Which one is right?

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list