JS: get rid of external extension functions and properties in stdlib

This commit is contained in:
Alexey Andreev
2016-11-28 12:16:18 +03:00
parent 3882bf7564
commit 212b9f37b3
7 changed files with 44 additions and 49 deletions
@@ -252,13 +252,13 @@ fun specialJS(): List<GenericFunction> {
}
templates add f("sort(comparison: (T, T) -> Int)") {
templates add f("sort(noinline comparison: (T, T) -> Int)") {
only(ArraysOfObjects, ArraysOfPrimitives)
exclude(PrimitiveType.Boolean)
external(true)
inline(true)
returns("Unit")
doc { "Sorts the array in-place according to the order specified by the given [comparison] function." }
body { "noImpl" }
body { "asDynamic().sort(comparison)" }
}
templates add f("sortWith(comparator: Comparator<in T>)") {