Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
belyaev-mikhail committed May 27, 2022
1 parent 934862d commit 21ac4d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ kotlin {
browser {
testTask {
useKarma {
useChromiumHeadless()
useChromeHeadless()
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/commonMain/kotlin/ru/spbstu/wheels/Collections.kt
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ fun <T> MutableList<T>.assign(other: Collection<T>) {
this[i] = iter.next()
++i
}
if (this is ArrayList<*>) ensureCapacity(other.size)
// native has a buggy ensureCapacity implementation
if (currentPlatform != Platform.NATIVE && this is ArrayList<*>) ensureCapacity(other.size)
while (other.size > size) add(iter.next())
}

Expand Down

0 comments on commit 21ac4d1

Please sign in to comment.