Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Unified Diff: sdk/lib/web_audio/dartium/web_audio_dartium.dart

Issue 11720002: Next step in overload dispatcher refactoring. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/indexed_db/dartium/indexed_db_dartium.dart ('k') | tools/dom/scripts/htmldartgenerator.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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");
}
« no previous file with comments | « sdk/lib/indexed_db/dartium/indexed_db_dartium.dart ('k') | tools/dom/scripts/htmldartgenerator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698