Index: lib/html/scripts/systemhtml.py |
diff --git a/lib/html/scripts/systemhtml.py b/lib/html/scripts/systemhtml.py |
index 684d66036a8c3abc8b50ed55ec5a5aca6e9dcbff..1528ccfe772cf41257769f1225835ca92e732224 100644 |
--- a/lib/html/scripts/systemhtml.py |
+++ b/lib/html/scripts/systemhtml.py |
@@ -699,7 +699,7 @@ class Dart2JSBackend(object): |
self._members_emitter.Emit( |
'\n' |
' void operator[]=(int index, $TYPE value) {\n' |
- ' throw new UnsupportedOperationException("Cannot assign element of immutable List.");\n' |
+ ' throw new UnsupportedError("Cannot assign element of immutable List.");\n' |
' }\n', |
TYPE=self._NarrowInputType(element_type)) |