[Webkit-unassigned] [Bug 41614] New: RegExp constructor should throw a SyntaxError if invalid flags are specified

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 5 07:20:07 PDT 2010


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

           Summary: RegExp constructor should throw a SyntaxError if
                    invalid flags are specified
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P3
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: kent.hansen at nokia.com


ECMA-262 5th edition, section 15.10.4.1: "If [the flags string] contains any character other than "g", "i", or "m", or if it contains the same character more than once,
then throw a SyntaxError exception."

This is currently not the case in the JSC implementation; invalid characters are ignored, as are duplicate characters.

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