Optimizations in listOf and arrayListOf constructor functions.

Remove linkedListOf() from JS.
#KT-5703 Fixed
#KT-8519 Fixed
This commit is contained in:
Ilya Gorbunov
2015-10-15 22:59:06 +03:00
parent 032ba44070
commit 446cdc087d
3 changed files with 24 additions and 34 deletions
+2
View File
@@ -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()) {