[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
Mon Aug 9 01:12:14 PDT 2010


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





--- Comment #7 from Kent Hansen <kent.hansen at nokia.com>  2010-08-09 01:12:14 PST ---
(In reply to comment #5)
> EcmaScript-262: section 15.10.4.1 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.

This is already stated in the bug description; I think Oliver was objecting to the createWithInvalidFlags() "helper" function.

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

Could you be more specific?

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