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

Issue 12040018: Make ListIterator throw if the underlying list's length changes. (Closed)

Created:
7 years, 11 months ago by Lasse Reichstein Nielsen
Modified:
7 years, 11 months ago
Reviewers:
floitsch
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Make ListIterator throw if the underlying list's length changes.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -1 line) Patch
M sdk/lib/collection_dev/list.dart View 1 chunk +6 lines, -1 line 0 comments Download
M tests/corelib/list_iterators_test.dart View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Lasse Reichstein Nielsen
7 years, 11 months ago (2013-01-22 15:18:57 UTC) #1
floitsch
LGTM. Does this fix https://code.google.com/p/dart/issues/detail?id=778 ?
7 years, 11 months ago (2013-01-22 15:26:12 UTC) #2
Lasse Reichstein Nielsen
7 years, 11 months ago (2013-01-24 06:51:20 UTC) #3
It does fix that problem, by throwing in the iterator.
If it hadn't used an iterator, it would still be a problem (I.e., I'll have to
fix forEach too).

Powered by Google App Engine
This is Rietveld 408576698