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

Unified Diff: lib/dom.dart

Issue 11265012: Changed UnsupportedOperationException to UnsupportedError (Closed) Base URL: https://github.com/dart-lang/html5lib.git@master
Patch Set: Created 8 years, 2 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
« no previous file with comments | « no previous file | lib/dom_parsing.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom.dart
diff --git a/lib/dom.dart b/lib/dom.dart
index 29d525f18788da981f745e219e2703cd4ead2f7c..ad6aab1e368adf8f4793d983083653bbb7f40ebf 100644
--- a/lib/dom.dart
+++ b/lib/dom.dart
@@ -485,8 +485,7 @@ class NodeList extends ListProxy<Node> {
throw new ArgumentError('cannot add null node.');
}
if (rangeLength > 1) {
- throw new UnsupportedOperationException('cannot add the same node '
- 'multiple times.');
+ throw new UnsupportedError('cannot add the same node multiple times.');
}
super.insertRange(start, 1, _setParent(initialValue));
}
« no previous file with comments | « no previous file | lib/dom_parsing.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698