Inconsistent results of List.join
under concurrent modification
#60619
Labels
List.join
under concurrent modification
#60619
When the
toString()
method of an element oflist
modifies the list, results oflist.join()
are inconsistent.Admittedly, this is an unlikely scenario.
RangeError
is thrown.I think it would be preferable if all of these caused a
ConcurrentModificationError
to be thrown.This is what happens for a list length change when the implementation of
join
is inherited fromListBase
orIterable
.The optimized versions should be optimizing this behaviour instead of changing it.
VM results:
dart2js results:
The text was updated successfully, but these errors were encountered: