Specify the exception codes for createScriptProcessor
authorEhsan Akhgari <ehsan@mozilla.com>
Thu, 18 Apr 2013 18:27:38 -0400
changeset 299 adad85993ac1
parent 298 3570fec878f0
child 300 14a452a003dc
Specify the exception codes for createScriptProcessor
webaudio/specification.html
--- a/webaudio/specification.html	Thu Apr 18 18:22:34 2013 -0400
+++ b/webaudio/specification.html	Thu Apr 18 18:27:38 2013 -0400
@@ -1066,7 +1066,7 @@
   method (please also see the <a href="#alternatenames-section">alternate names section</a>)</dt>
     <dd><p>Creates a <a
       href="#ScriptProcessorNode"><code>ScriptProcessorNode</code></a> for
-      direct audio processing using JavaScript.  An exception will be thrown if <code>bufferSize</code> or <code>numberOfInputChannels</code> or <code>numberOfOutputChannels</code>
+      direct audio processing using JavaScript.  An INDEX_SIZE_ERR exception MUST be thrown if <code>bufferSize</code> or <code>numberOfInputChannels</code> or <code>numberOfOutputChannels</code>
       are outside the valid range. </p>
       <p>The <dfn id="dfn-bufferSize">bufferSize</dfn> parameter determines the
       buffer size in units of sample-frames.  If it's not passed in, or if the
@@ -1088,7 +1088,7 @@
       determines the number of channels for this node's input.  Values of up to 32 must be supported. </p>
       <p>The <dfn id="dfn-numberOfOutputChannels">numberOfOutputChannels</dfn> parameter (defaults to 2) and
       determines the number of channels for this node's output.  Values of up to 32 must be supported.</p>
-      <p>It is invalid for both <code>numberOfInputChannels</code> and
+      <p>It is invalid for either <code>numberOfInputChannels</code> and
       <code>numberOfOutputChannels</code> to be zero. </p>
     </dd>
 </dl>