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

Unified Diff: sdk/lib/async/event_loop.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: sdk/lib/async/event_loop.dart
diff --git a/sdk/lib/async/event_loop.dart b/sdk/lib/async/event_loop.dart
index 6e8864db273d5c2fe31bd0747688a7f7d8e7b13f..3ceccd2c95766d8c04d365f52c388a409c46b6bd 100644
--- a/sdk/lib/async/event_loop.dart
+++ b/sdk/lib/async/event_loop.dart
@@ -24,7 +24,7 @@ void _asyncRunCallback() {
callback();
} catch (e) {
i++; // Skip current callback.
- List remainingCallbacks = callbacks.getRange(i, callbacks.length - i);
+ List remainingCallbacks = callbacks.sublist(i);
List newCallbacks = _asyncCallbacks;
_asyncCallbacks = <_AsyncCallback>[];
_asyncCallbacks.addAll(remainingCallbacks);

Powered by Google App Engine
This is Rietveld 408576698