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

Unified Diff: runtime/lib/invocation_mirror_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: Addressed review comments Created 7 years, 9 months 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: runtime/lib/invocation_mirror_patch.dart
diff --git a/runtime/lib/invocation_mirror_patch.dart b/runtime/lib/invocation_mirror_patch.dart
index 6a55ca2dff7bb0fe2a62c493764795493aab633a..c498eac3295201549688ffe324c366754e2e59c7 100644
--- a/runtime/lib/invocation_mirror_patch.dart
+++ b/runtime/lib/invocation_mirror_patch.dart
@@ -56,9 +56,9 @@ class _InvocationMirror implements InvocationMirror {
List get positionalArguments {
if (_positionalArguments == null) {
+ int numPositionalArguments = _argumentsDescriptor[1];
// Exclude receiver.
- int numPositionalArguments = _argumentsDescriptor[1] - 1;
- _positionalArguments = _arguments.getRange(1, numPositionalArguments);
+ _positionalArguments = _arguments.sublist(1, numPositionalArguments);
}
return _positionalArguments;
}

Powered by Google App Engine
This is Rietveld 408576698