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

Unified Diff: lib/src/token.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 | « lib/dom_parsing.dart ('k') | test/tokenizer_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/token.dart
diff --git a/lib/src/token.dart b/lib/src/token.dart
index f95a6462d85175a1da7a56bb0dc2e11d97ed6488..7fdf13ca8fbc386c0933bf34830049b47e1525e8 100644
--- a/lib/src/token.dart
+++ b/lib/src/token.dart
@@ -92,8 +92,8 @@ class DoctypeToken extends Token {
int get kind => TokenKind.doctype;
// TODO(jmesserly): remove. These are only here because of Token.data
- String get data { throw const UnsupportedOperationException("data"); }
- set data(value) { throw const UnsupportedOperationException("data"); }
+ String get data { throw new UnsupportedError("data"); }
+ set data(value) { throw new UnsupportedError("data"); }
}
« no previous file with comments | « lib/dom_parsing.dart ('k') | test/tokenizer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698