RESOLVED DUPLICATE of bug 2208224716
typeof regexp returns function
https://bugs.webkit.org/show_bug.cgi?id=24716
Summary typeof regexp returns function
Peter Kim
Reported 2009-03-20 03:14:53 PDT
typeof /someregexp/ returns 'function'. expected value is 'regexp' in firefox, 'object' is returned.
Attachments
Peter Kim
Comment 1 2009-03-20 06:36:57 PDT
looks like the consensus is that it should return 'object' see discussion in mozilla bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=61911
Cameron Zwarich (cpst)
Comment 2 2009-03-20 08:18:07 PDT
Ironically, this was originally done for compatibility with Mozilla. Bug 22082 suggests that we should change it back. *** This bug has been marked as a duplicate of 22082 ***
Note You need to log in before you can comment on or make changes to this bug.