Index: sdk/lib/web_audio/dartium/web_audio_dartium.dart |
diff --git a/sdk/lib/web_audio/dartium/web_audio_dartium.dart b/sdk/lib/web_audio/dartium/web_audio_dartium.dart |
index 3a591f747443469248c3f16ab4d41c7c65ec7fa9..dddf9d1ad60b077614e3f9f748eef4f7c6e7dc28 100644 |
--- a/sdk/lib/web_audio/dartium/web_audio_dartium.dart |
+++ b/sdk/lib/web_audio/dartium/web_audio_dartium.dart |
@@ -192,7 +192,7 @@ class AudioBufferSourceNode extends AudioSourceNode { |
_start_3(when, grainOffset, grainDuration); |
return; |
} |
- throw "Incorrect number or type of arguments"; |
+ throw new ArgumentError("Incorrect number or type of arguments"); |
} |
@@ -264,7 +264,7 @@ class AudioContext extends EventTarget { |
if ((buffer_OR_numberOfChannels is ArrayBuffer || buffer_OR_numberOfChannels == null) && (mixToMono_OR_numberOfFrames is bool || mixToMono_OR_numberOfFrames == null) && !?sampleRate) { |
return _createBuffer_2(buffer_OR_numberOfChannels, mixToMono_OR_numberOfFrames); |
} |
- throw "Incorrect number or type of arguments"; |
+ throw new ArgumentError("Incorrect number or type of arguments"); |
} |
@@ -504,7 +504,7 @@ class AudioNode extends NativeFieldWrapperClass1 { |
_connect_2(destination, output); |
return; |
} |
- throw "Incorrect number or type of arguments"; |
+ throw new ArgumentError("Incorrect number or type of arguments"); |
} |