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

Unified Diff: lib/html/templates/html/impl/impl_DocumentFragment.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/impl/impl_DocumentFragment.darttemplate
diff --git a/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate b/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate
index 999ea00e20392a9f99dd69076ea471bd77a9d86a..96f0cda8d9d17f7cff9931f8d2f33af20109f7f5 100644
--- a/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate
+++ b/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate
@@ -38,7 +38,7 @@ class FilteredElementList implements ElementList {
if (newLength >= len) {
return;
} else if (newLength < 0) {
- throw const IllegalArgumentException("Invalid list length");
+ throw const ArgumentError("Invalid list length");
}
removeRange(newLength - 1, len - newLength);
@@ -190,7 +190,7 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
this.nodes.add(node);
return node;
default:
- throw new IllegalArgumentException("Invalid position ${where}");
+ throw new ArgumentError("Invalid position ${where}");
}
}

Powered by Google App Engine
This is Rietveld 408576698