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); |