Open
Description
JSArray.addAll
checks for a ConcurrentModificationError
in a assert
.
As a consequence, the tests
corelib_2/growable_list_test RuntimeError
corelib/growable_list_test RuntimeError
are failing on configurations that run without asserts enabled.
I think it is reasonable for a CME check for an unlikely case to be checked in an assertion rather than in production.
We should assess if moving the CME check to an assert was beneficial for performance, and whether we have good test coverage for assert-based checks.