[Webkit-unassigned] [Bug 44600] New: Splitting an empty string sometimes returns an empty array

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 25 04:50:16 PDT 2010


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

           Summary: Splitting an empty string sometimes returns an empty
                    array
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh Intel
        OS/Version: Mac OS X 10.6
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: john at johnmoe.com


In the console:
'a'.split(/\s+/)
["a"]
''.split(/\s+/)
[""]
''.split(/\s+/)
[]

Notice the last two are identical, but give different answers.  Other browsers and older webkit give the [""].  This seems to break some pages of Google apps for your domain admin.

-- 
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