<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>24716</bug_id>
          
          <creation_ts>2009-03-20 03:14:53 -0700</creation_ts>
          <short_desc>typeof regexp returns function</short_desc>
          <delta_ts>2009-03-20 08:18:07 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>22082</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Peter Kim">raingrove</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>114475</commentid>
    <comment_count>0</comment_count>
    <who name="Peter Kim">raingrove</who>
    <bug_when>2009-03-20 03:14:53 -0700</bug_when>
    <thetext>typeof /someregexp/ returns &apos;function&apos;.

expected value is &apos;regexp&apos;

in firefox, &apos;object&apos; is returned.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114485</commentid>
    <comment_count>1</comment_count>
    <who name="Peter Kim">raingrove</who>
    <bug_when>2009-03-20 06:36:57 -0700</bug_when>
    <thetext>looks like the consensus is that it should return &apos;object&apos;

see discussion in mozilla bugzilla:

https://bugzilla.mozilla.org/show_bug.cgi?id=61911</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114493</commentid>
    <comment_count>2</comment_count>
    <who name="Cameron Zwarich (cpst)">zwarich</who>
    <bug_when>2009-03-20 08:18:07 -0700</bug_when>
    <thetext>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 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>