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

Unified Diff: lib/html/templates/html/dart2js/impl_IDBDatabase.darttemplate

Issue 10989013: Change IllegalArgumentException to ArgumentError. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated co19 test expectations. Created 8 years, 3 months 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
Index: lib/html/templates/html/dart2js/impl_IDBDatabase.darttemplate
diff --git a/lib/html/templates/html/dart2js/impl_IDBDatabase.darttemplate b/lib/html/templates/html/dart2js/impl_IDBDatabase.darttemplate
index fcafadcef880d52f349b08477a7d43eef43a3ca9..46b5c789cbaf775cbbf130a0759978456b771f45 100644
--- a/lib/html/templates/html/dart2js/impl_IDBDatabase.darttemplate
+++ b/lib/html/templates/html/dart2js/impl_IDBDatabase.darttemplate
@@ -6,7 +6,7 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
_IDBTransactionImpl transaction(storeName_OR_storeNames, String mode) {
if (mode != 'readonly' && mode != 'readwrite') {
- throw new IllegalArgumentException(mode);
+ throw new ArgumentError(mode);
}
// TODO(sra): Ensure storeName_OR_storeNames is a string, List<String> or

Powered by Google App Engine
This is Rietveld 408576698