Bug 26903: Use TypeError for various validation errors instead of SyntaxError
authorMark Watson <watsonm@netflix.com>
Thu, 30 Oct 2014 16:15:13 -0700
changeset 278 b8f161c372a5
parent 277 42b6c67b5954
child 279 34df8cbba360
Bug 26903: Use TypeError for various validation errors instead of SyntaxError
spec/Overview-WebCryptoAPI.xml
spec/Overview.html
--- a/spec/Overview-WebCryptoAPI.xml	Thu Oct 30 16:07:12 2014 -0700
+++ b/spec/Overview-WebCryptoAPI.xml	Thu Oct 30 16:15:13 2014 -0700
@@ -15059,7 +15059,7 @@
                             <dt>Otherwise:</dt>
                             <dd>
                               <a href="#concept-throw">throw</a> a
-                              <a href="#dfn-SyntaxError"><code>SyntaxError</code></a>.
+                              <a href="#dfn-TypeError"><code>TypeError</code></a>.
                             </dd>
                           </dl>
                         </li>
@@ -15534,7 +15534,7 @@
                             If the <a href="#dfn-HmacImportParams-hash">hash</a> member
                             of <var>normalizedDerivedKeyAlgorithm</var> is not present,
                             <a href="#concept-throw">throw</a> a
-                            <a href="#dfn-SyntaxError"><code>SyntaxError</code></a>.
+                            <a href="#dfn-TypeError"><code>TypeError</code></a>.
                           </p>
                         </li>
                         <li>
@@ -15558,7 +15558,7 @@
                     <dt>Otherwise:</dt>
                     <dd>
                       <a href="#concept-throw">throw</a> a
-                      <a href="#dfn-SyntaxError"><code>SyntaxError</code></a>.
+                      <a href="#dfn-TypeError"><code>TypeError</code></a>.
                     </dd>
                   </dl>
                 </li>
@@ -16869,7 +16869,7 @@
               <ol>
                 <li>
                   <p>
-                    If <var>length</var> is null, then <a href="#concept-throw">throw</a> a <a href="#dfn-SyntaxError"><code>SyntaxError</code></a>.
+                    If <var>length</var> is null, then <a href="#concept-throw">throw</a> a <a href="#dfn-TypeError"><code>TypeError</code></a>.
                   </p>
                 </li>
                 <li>
--- a/spec/Overview.html	Thu Oct 30 16:07:12 2014 -0700
+++ b/spec/Overview.html	Thu Oct 30 16:15:13 2014 -0700
@@ -14561,7 +14561,7 @@
                             <dt>Otherwise:</dt>
                             <dd>
                               <a href="#concept-throw">throw</a> a
-                              <a href="#dfn-SyntaxError"><code>SyntaxError</code></a>.
+                              <a href="#dfn-TypeError"><code>TypeError</code></a>.
                             </dd>
                           </dl>
                         </li>
@@ -15029,7 +15029,7 @@
                             If the <a href="#dfn-HmacImportParams-hash">hash</a> member
                             of <var>normalizedDerivedKeyAlgorithm</var> is not present,
                             <a href="#concept-throw">throw</a> a
-                            <a href="#dfn-SyntaxError"><code>SyntaxError</code></a>.
+                            <a href="#dfn-TypeError"><code>TypeError</code></a>.
                           </p>
                         </li>
                         <li>
@@ -15053,7 +15053,7 @@
                     <dt>Otherwise:</dt>
                     <dd>
                       <a href="#concept-throw">throw</a> a
-                      <a href="#dfn-SyntaxError"><code>SyntaxError</code></a>.
+                      <a href="#dfn-TypeError"><code>TypeError</code></a>.
                     </dd>
                   </dl>
                 </li>
@@ -16306,7 +16306,7 @@
               <ol>
                 <li>
                   <p>
-                    If <var>length</var> is null, then <a href="#concept-throw">throw</a> a <a href="#dfn-SyntaxError"><code>SyntaxError</code></a>.
+                    If <var>length</var> is null, then <a href="#concept-throw">throw</a> a <a href="#dfn-TypeError"><code>TypeError</code></a>.
                   </p>
                 </li>
                 <li>