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

Unified Diff: tools/dom/scripts/systemhtml.py

Issue 711003002: Add some ArgumentError and RangeError constructors that capture more information. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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
Index: tools/dom/scripts/systemhtml.py
diff --git a/tools/dom/scripts/systemhtml.py b/tools/dom/scripts/systemhtml.py
index b8409e99efa8233584c55a56964159e283e13b63..f4bb12482dc1cc4c34ef0c1409b1ec309a64ca46 100644
--- a/tools/dom/scripts/systemhtml.py
+++ b/tools/dom/scripts/systemhtml.py
@@ -788,7 +788,7 @@ class Dart2JSBackend(HtmlDartGenerator):
' $TYPE operator[](int index) {\n'
' if (JS("bool", "# >>> 0 !== # || # >= #", index,\n'
' index, index, length))\n'
- ' throw new RangeError.range(index, 0, length);\n'
+ ' throw new RangeError.index(index, this);\n'
' return $INDEXED_GETTER;\n'
' }',
INDEXED_GETTER=indexed_getter,
@@ -1241,7 +1241,7 @@ class DartLibrary():
imports_emitter, map_emitter = emitters
else:
imports_emitter, map_emitter = emitters, None
-
+
for path in sorted(self._paths):
relpath = os.path.relpath(path, library_file_dir)
@@ -1256,7 +1256,7 @@ class DartLibrary():
" '$IDL_NAME': () => $DART_NAME,\n",
IDL_NAME=idl_name,
DART_NAME=dart_name)
-
+
# ------------------------------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698