Optimizations in listOf and arrayListOf constructor functions.
Remove linkedListOf() from JS. #KT-5703 Fixed #KT-8519 Fixed
This commit is contained in:
+2
@@ -1018,6 +1018,8 @@
|
||||
};
|
||||
|
||||
Kotlin.copyToArray = function (collection) {
|
||||
if (typeof collection.toArray !== "undefined") return collection.toArray();
|
||||
|
||||
var array = [];
|
||||
var it = collection.iterator();
|
||||
while (it.hasNext()) {
|
||||
|
||||
Reference in New Issue
Block a user