[Webkit-unassigned] [Bug 129466] New: indexOf and lastIndexOf shouldn't resolve ropes when needle is longer than haystack

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 27 20:41:16 PST 2014


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

           Summary: indexOf and lastIndexOf shouldn't resolve ropes when
                    needle is longer than haystack
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: rniwa at webkit.org
                CC: ggaren at apple.com, oliver at apple.com,
                    benjamin at webkit.org, akling at apple.com,
                    fpizlo at apple.com


Right now indexOf and lastIndexOf always resolves ropes via JSString::toString.
Just return -1 before resolving ropes when needle is longer than haystack.

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