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

Unified Diff: lib/html/src/shared_FactoryProviders.dart

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/src/shared_FactoryProviders.dart
diff --git a/lib/html/src/shared_FactoryProviders.dart b/lib/html/src/shared_FactoryProviders.dart
index f5c8abe38dc602aae926db7cf91dc2c072f527ad..8f59383c2ef2b8fe85af1d71968b2f950099b14d 100644
--- a/lib/html/src/shared_FactoryProviders.dart
+++ b/lib/html/src/shared_FactoryProviders.dart
@@ -91,7 +91,7 @@ class _SVGElementFactoryProvider {
parentTag.innerHTML = svg;
if (parentTag.elements.length == 1) return parentTag.nodes.removeLast();
- throw new IllegalArgumentException(
+ throw new ArgumentError(
'SVG had ${parentTag.elements.length} '
'top-level elements but 1 expected');
}

Powered by Google App Engine
This is Rietveld 408576698