<?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>41602</bug_id>
          
          <creation_ts>2010-07-05 03:44:15 -0700</creation_ts>
          <short_desc>Native error prototype objects should be Error instances</short_desc>
          <delta_ts>2011-08-12 01:12:16 -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>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>55346</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kent Hansen">kent.hansen</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>barraclough</cc>
    
    <cc>cmarcelo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>246559</commentid>
    <comment_count>0</comment_count>
    <who name="Kent Hansen">kent.hansen</who>
    <bug_when>2010-07-05 03:44:15 -0700</bug_when>
    <thetext>ECMA-262, 5th edition, 15.11.7.7: &quot;Each NativeError prototype object is an Error object (its [[Class]] is &quot;Error&quot;)&quot;

Object.prototype.toString.call(TypeError.prototype)

produces &quot;[object Object]&quot; with JSC, whereas SpiderMonkey and V8 both produce &quot;[object Error&quot;], as expected. Same for the other *Error prototypes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>253132</commentid>
    <comment_count>1</comment_count>
    <who name="Kent Hansen">kent.hansen</who>
    <bug_when>2010-07-19 03:20:39 -0700</bug_when>
    <thetext>This does not appear to be covered by any Sputnik test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>450354</commentid>
    <comment_count>2</comment_count>
    <who name="Gavin Barraclough">barraclough</who>
    <bug_when>2011-08-12 01:12:16 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 55346 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>