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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Aug 7 00:20:54 PDT 2010


Zoltan Herczeg <zherczeg at webkit.org> changed:

           What    |Removed                     |Added
                 CC|                            |zherczeg at webkit.org

--- Comment #5 from Zoltan Herczeg <zherczeg at webkit.org>  2010-08-07 00:20:54 PST ---
EcmaScript-262: section new RegExp(pattern, flags)

[...] and let F be the empty String if flags is undefined and ToString(flags) otherwise. [...] If F contains any character other than "g", "i", or "m", or if it contains the same character more than once, then throw a SyntaxError exception.

I am agree some cleanup could be useful on the code.

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