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

Unified Diff: lib/html/templates/html/impl/impl_Element.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_Element.darttemplate
diff --git a/lib/html/templates/html/impl/impl_Element.darttemplate b/lib/html/templates/html/impl/impl_Element.darttemplate
index 2b78504b5ab88b794ce226f09c96ba4e9267c262..2bb8351d292fd91f66b11648adc67acab887a32a 100644
--- a/lib/html/templates/html/impl/impl_Element.darttemplate
+++ b/lib/html/templates/html/impl/impl_Element.darttemplate
@@ -807,7 +807,7 @@ $if DART2JS
this.parent.insertBefore(node, this.nextNode);
break;
default:
- throw new IllegalArgumentException("Invalid position ${where}");
+ throw new ArgumentError("Invalid position ${where}");
}
}
$else
@@ -864,7 +864,7 @@ class _ElementFactoryProvider {
// only contains a head or body element.
element = temp.elements[tag == 'head' ? 0 : 1];
} else {
- throw new IllegalArgumentException('HTML had ${temp.elements.length} '
+ throw new ArgumentError('HTML had ${temp.elements.length} '
'top level elements but 1 expected');
}
element.remove();

Powered by Google App Engine
This is Rietveld 408576698