diff --git a/js/js.translator/testData/kotlin_lib.js b/js/js.translator/testData/kotlin_lib.js index 4c7f4da47cc..e5d13e14da8 100644 --- a/js/js.translator/testData/kotlin_lib.js +++ b/js/js.translator/testData/kotlin_lib.js @@ -781,12 +781,7 @@ boundComparator = comparator.compare.bind(comparator); } - if (mutableList instanceof Array) { - mutableList.sort(boundComparator); - } - if (mutableList.size > 1) { - //TODO: should be deleted when List will be JS Array-like (https://developer.mozilla.org/en-US/docs/JavaScript/Guide/Predefined_Core_Objects#Working_with_Array-like_objects) var array = Kotlin.copyToArray(mutableList); array.sort(boundComparator);