[Webkit-unassigned] [Bug 71784] RegExp.prototype.compile should return the regular expression, rather than undefined.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 8 10:18:51 PST 2011


Alexey Proskuryakov <ap at webkit.org> changed:

           What    |Removed                     |Added
                 CC|                            |barraclough at apple.com,
                   |                            |msaboff at apple.com,
                   |                            |oliver at apple.com

--- Comment #1 from Alexey Proskuryakov <ap at webkit.org>  2011-11-08 10:18:51 PST ---
Please post complete reports to Bugzilla. People reading bugs shouldn't need to click through to external sites.

The bug report says:

var expr = (new RegExp).compile('str');
// now expr will be undefined

The RegExp.prototype.compile function is non-standard.  Mozilla have tried to remove it at least once: https://bugzilla.mozilla.org/show_bug.cgi?id=630284

That said, FF will return the regexp, while Safari and Chrome will return undefined.

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