[WASM] Add std methods for collections

This commit is contained in:
Igor Yakovlev
2021-12-21 12:58:35 +01:00
committed by igoriakovlev
parent c9a92d71ae
commit e58d4163ad
8 changed files with 42 additions and 54 deletions
@@ -1174,9 +1174,6 @@ object ArrayOps : TemplateGroupBase() {
}
on(Platform.Native) {
body { "return this.copyOfNulls(newSize)" }
on(Backend.Wasm) {
body { """TODO("Wasm stdlib: $signature")""" }
}
}
}
specialFor(ArraysOfPrimitives, InvariantArraysOfObjects) {
@@ -1259,9 +1256,6 @@ object ArrayOps : TemplateGroupBase() {
}
on(Platform.Native) {
body { """if (size > 1) sortArray(this, 0, size)""" }
on(Backend.Wasm) {
body { """TODO("Wasm stdlib: $signature")""" }
}
}
}
}
@@ -1396,9 +1390,6 @@ object ArrayOps : TemplateGroupBase() {
sortArray(this, fromIndex, toIndex)
"""
}
on(Backend.Wasm) {
body { """TODO("Wasm stdlib: $signature")""" }
}
}
on(Platform.JS) {
since("1.4")
@@ -1455,9 +1446,6 @@ object ArrayOps : TemplateGroupBase() {
sortArrayWith(this, fromIndex, toIndex, comparator)
"""
}
on(Backend.Wasm) {
body { """TODO("Wasm stdlib: $signature")""" }
}
}
on(Platform.JS) {
since("1.4")