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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>16454</bug_id>
          
          <creation_ts>2012-03-20 18:25:41 +0000</creation_ts>
          <short_desc>SomethingError</short_desc>
          <delta_ts>2012-03-21 23:00:50 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>WebIDL</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://dev.w3.org/2006/webapi/WebIDL/#ecmascript-throw</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Marcos Caceres">w3c</reporter>
          <assigned_to name="Cameron McCormack">cam</assigned_to>
          <cc>annevk</cc>
    
    <cc>mike</cc>
    
    <cc>public-script-coord</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>65860</commentid>
    <comment_count>0</comment_count>
    <who name="Marcos Caceres">w3c</who>
    <bug_when>2012-03-20 18:25:41 +0000</bug_when>
    <thetext>The spec says &quot;When an algorithm says to “throw a SomethingError” then this means to construct a new ECMAScript SomethingError object and to throw it, just as the algorithms in ECMA-262 do.&quot;

But you only ever throw a TypeError (or I could not find any other type of error?). I think it would be better to have all throw TypeError just link directly to ECMAScript5.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65876</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-03-20 20:16:21 +0000</bug_when>
    <thetext>Indexed DB does that. What is wrong with having a convenience hook?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65877</commentid>
    <comment_count>2</comment_count>
    <who name="Marcos Caceres">w3c</who>
    <bug_when>2012-03-20 20:26:18 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Indexed DB does that. What is wrong with having a convenience hook?

Nothing wrong, if it does something. If in this case it doesn&apos;t do anything, then it is redundant. I would rather click on &quot;throw an TypeError&quot; and be taken straight to ECMAScript5 (rather than do a roundtrip). http://es5.github.com/#x15.11.6.5</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65931</commentid>
    <comment_count>3</comment_count>
    <who name="Cameron McCormack">cam</who>
    <bug_when>2012-03-21 23:00:50 +0000</bug_when>
    <thetext>Yeah, sorry it would be good to have a link to the actual ECMAScript requirements.  I&apos;ve added a link from #dfn-throw to #es-throwing-exceptions.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>