| Index: lib/html/templates/html/impl/impl_DocumentFragment.darttemplate
|
| diff --git a/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate b/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate
|
| index 999ea00e20392a9f99dd69076ea471bd77a9d86a..96f0cda8d9d17f7cff9931f8d2f33af20109f7f5 100644
|
| --- a/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate
|
| +++ b/lib/html/templates/html/impl/impl_DocumentFragment.darttemplate
|
| @@ -38,7 +38,7 @@ class FilteredElementList implements ElementList {
|
| if (newLength >= len) {
|
| return;
|
| } else if (newLength < 0) {
|
| - throw const IllegalArgumentException("Invalid list length");
|
| + throw const ArgumentError("Invalid list length");
|
| }
|
|
|
| removeRange(newLength - 1, len - newLength);
|
| @@ -190,7 +190,7 @@ class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
|
| this.nodes.add(node);
|
| return node;
|
| default:
|
| - throw new IllegalArgumentException("Invalid position ${where}");
|
| + throw new ArgumentError("Invalid position ${where}");
|
| }
|
| }
|
|
|
|
|