Remove the 'raises' notation from the IDLs
authorEhsan Akhgari <ehsan@mozilla.com>
Tue, 21 Aug 2012 15:36:48 -0400
changeset 138 f3ddb7e17ae1
parent 137 4b6c7a7b9312
child 139 564e65c76380
Remove the 'raises' notation from the IDLs

'raises' has been removed from Web IDL, and we should not use it in the spec.
webaudio/specification.html
--- a/webaudio/specification.html	Fri Aug 17 21:44:07 2012 +0100
+++ b/webaudio/specification.html	Tue Aug 21 15:36:48 2012 -0400
@@ -715,31 +715,25 @@
     readonly attribute AudioListener listener;
     readonly attribute unsigned long activeSourceCount;
 
-    AudioBuffer createBuffer(unsigned long numberOfChannels, unsigned long length, float sampleRate)
-        raises(DOMException);
-
-    AudioBuffer createBuffer(ArrayBuffer buffer, boolean mixToMono)
-        raises(DOMException);
+    AudioBuffer createBuffer(unsigned long numberOfChannels, unsigned long length, float sampleRate);
+
+    AudioBuffer createBuffer(ArrayBuffer buffer, boolean mixToMono);
 
     void decodeAudioData(ArrayBuffer audioData,
                          AudioBufferCallback successCallback,
-                         optional AudioBufferCallback errorCallback)
-        raises(DOMException);
+                         optional AudioBufferCallback errorCallback);
 
 
     <span class="comment">// AudioNode creation </span>
     AudioBufferSourceNode createBufferSource();
 
-    MediaElementAudioSourceNode createMediaElementSource(HTMLMediaElement mediaElement)
-        raises(DOMException);
-
-    MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream)
-        raises(DOMException);
+    MediaElementAudioSourceNode createMediaElementSource(HTMLMediaElement mediaElement);
+
+    MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream);
 
     JavaScriptAudioNode createJavaScriptNode(unsigned long bufferSize,
                                              optional unsigned long numberOfInputChannels = 2,
-                                             optional unsigned long numberOfOutputChannels = 2)
-        raises(DOMException);
+                                             optional unsigned long numberOfOutputChannels = 2);
 
     RealtimeAnalyserNode createAnalyser();
     AudioGainNode createGainNode();
@@ -748,17 +742,14 @@
     AudioPannerNode createPanner();
     ConvolverNode createConvolver();
 
-    AudioChannelSplitter createChannelSplitter(optional unsigned long numberOfOutputs = 6)
-        raises(DOMException);
-
-    AudioChannelMerger createChannelMerger(optional unsigned long numberOfInputs = 6)
-        raises(DOMException);
+    AudioChannelSplitter createChannelSplitter(optional unsigned long numberOfOutputs = 6);
+
+    AudioChannelMerger createChannelMerger(optional unsigned long numberOfInputs = 6);
 
     DynamicsCompressorNode createDynamicsCompressor();
 
     Oscillator createOscillator();
-    WaveTable createWaveTable(Float32Array real, Float32Array imag)
-        raises(DOMException);
+    WaveTable createWaveTable(Float32Array real, Float32Array imag);
 
 };
 </code></pre>
@@ -1053,14 +1044,11 @@
 
 interface <dfn id="dfn-AudioNode">AudioNode</dfn> {
 
-    void connect(AudioNode destination, optional unsigned long output = 0, optional unsigned long input = 0)
-        raises(DOMException);
-
-    void connect(AudioParam destination, optional unsigned long output = 0)
-        raises(DOMException);
-
-    void disconnect(optional unsigned long output = 0)
-        raises(DOMException);
+    void connect(AudioNode destination, optional unsigned long output = 0, optional unsigned long input = 0);
+
+    void connect(AudioParam destination, optional unsigned long output = 0);
+
+    void disconnect(optional unsigned long output = 0);
 
     readonly attribute AudioContext context;
     readonly attribute unsigned long numberOfInputs;