Chromium Code Reviews

Unified Diff: runtime/lib/errors_patch.dart

Issue 12817003: Change getRange to sublist. Make getRange deprecated. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: runtime/lib/errors_patch.dart
diff --git a/runtime/lib/errors_patch.dart b/runtime/lib/errors_patch.dart
index 1058a7a8e7026e8df3bf7f923651fb06d0458736..37ab0659319d95bb1d85918a5b805a661768aacb 100644
--- a/runtime/lib/errors_patch.dart
+++ b/runtime/lib/errors_patch.dart
@@ -25,7 +25,7 @@ patch class NoSuchMethodError {
if (numPositionalArguments == 0) {
positionalArguments = [];
} else {
- positionalArguments = arguments.getRange(0, numPositionalArguments);
+ positionalArguments = arguments.sublist(0, numPositionalArguments);
}
Map<String, dynamic> namedArguments = new Map<String, dynamic>();
for (int i = 0; i < numNamedArguments; i++) {

Powered by Google App Engine