Index: sdk/lib/html/scripts/systemhtml.py |
diff --git a/sdk/lib/html/scripts/systemhtml.py b/sdk/lib/html/scripts/systemhtml.py |
index e6fc7821580f0f8d9826809e0d4bf22d322788f6..b74213880ed9f8abbac3300aac161685e3fd10d8 100644 |
--- a/sdk/lib/html/scripts/systemhtml.py |
+++ b/sdk/lib/html/scripts/systemhtml.py |
@@ -809,7 +809,7 @@ class Dart2JSBackend(HtmlDartGenerator): |
GenerateChecksAndCall(operation, position) |
GenerateChecksAndCall(operation, len(operation.arguments)) |
body.Emit( |
- ' throw const Exception("Incorrect number or type of arguments");' |
+ ' throw new ArgumentError("Incorrect number or type of arguments");' |
'\n'); |
else: |
operation = operations[0] |