Index: pkg/third_party/html5lib/lib/src/treebuilder.dart |
diff --git a/pkg/third_party/html5lib/lib/src/treebuilder.dart b/pkg/third_party/html5lib/lib/src/treebuilder.dart |
index bb53d58509881ed00855f02a284c94e7d19ed296..adde3bf1537c4d20242e6bbc5b12df08f1e4e379 100644 |
--- a/pkg/third_party/html5lib/lib/src/treebuilder.dart |
+++ b/pkg/third_party/html5lib/lib/src/treebuilder.dart |
@@ -12,7 +12,7 @@ import 'utils.dart'; |
// The scope markers are inserted when entering object elements, |
// marquees, table cells, and table captions, and are used to prevent formatting |
// from "leaking" into tables, object elements, and marquees. |
-final Node Marker = null; |
+const Node Marker = null; |
// TODO(jmesserly): this should extend ListBase<Node>, but my simple attempt |
// didn't work. |
@@ -130,7 +130,8 @@ class TreeBuilder { |
const Pair(Namespaces.html, "option")]; |
invert = true; |
break; |
- default: assert(false); break; |
+ default: |
+ throw new StateError('We should never reach this point'); |
} |
} |
@@ -145,7 +146,7 @@ class TreeBuilder { |
} |
} |
- assert(false); // We should never reach this point |
+ throw new StateError('We should never reach this point'); |
} |
void reconstructActiveFormattingElements() { |