mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 21:20:36 +00:00
d8fa6fe255
The iterable is used for the `keys` and `values` of `LinkedHashMap`. The original code remembered the internal data list and used-count when the iterable was created, and if the iterable was modified between creating and iterating, the iterated values would not match the map. The solution is to not cache those values, and read them from the hash table when creting the `Iterator` instead. Fixes #48282 Tested: Added regression test to corelib/map_test Bug: https://dartbug.com/48282 Change-Id: I79310615e7090556e6f45b0d7f297755951ef046 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/312263 Commit-Queue: Lasse Nielsen <lrn@google.com> Reviewed-by: Slava Egorov <vegorov@google.com> |
||
---|---|---|
.. | ||
bin | ||
lib | ||
.gitignore | ||
api_readme.md | ||
BUILD.gn | ||
OWNERS |