| Index: pkg/unittest/lib/mock.dart
|
| diff --git a/pkg/unittest/lib/mock.dart b/pkg/unittest/lib/mock.dart
|
| index db243dbd545c4912ddea83e16e4262413cb64193..47eae38b901964ea296ac4eb78de93a779aa0dc7 100644
|
| --- a/pkg/unittest/lib/mock.dart
|
| +++ b/pkg/unittest/lib/mock.dart
|
| @@ -513,7 +513,8 @@ class LogEntryList {
|
| actionMatcher.matches(entry, matchState)) {
|
| rtn.add(entry);
|
| if (destructive) {
|
| - logs.removeRange(i--, 1);
|
| + int startIndex = i--;
|
| + logs.removeRange(startIndex, startIndex + 1);
|
| }
|
| }
|
| }
|
| @@ -621,7 +622,7 @@ class LogEntryList {
|
| int pos = findLogEntry(logFilter, 0, defaultPosition);
|
| if (inPlace) {
|
| if (pos < logs.length) {
|
| - logs.removeRange(pos, logs.length - pos);
|
| + logs.removeRange(pos, logs.length);
|
| }
|
| filter = description;
|
| return this;
|
|
|