diff --git a/libraries/tools/kotlin-stdlib-gen/src/templates/Arrays.kt b/libraries/tools/kotlin-stdlib-gen/src/templates/Arrays.kt index a98338f820c..e0bfb66aa66 100644 --- a/libraries/tools/kotlin-stdlib-gen/src/templates/Arrays.kt +++ b/libraries/tools/kotlin-stdlib-gen/src/templates/Arrays.kt @@ -59,7 +59,7 @@ fun arrays(): List { body(Platform.JVM) { "return java.util.Arrays.equals(this, other)" } annotations(Platform.JS, """@library("arrayEquals")""") - body(Platform.JS) { "return noImpl" } + body(Platform.JS) { "definedExternally" } } @@ -80,7 +80,7 @@ fun arrays(): List { returns("Boolean") body(Platform.JVM) { "return java.util.Arrays.deepEquals(this, other)" } annotations(Platform.JS, """@library("arrayDeepEquals")""") - body(Platform.JS) { "return noImpl" } + body(Platform.JS) { "definedExternally" } } templates add f("contentToString()") { @@ -91,7 +91,7 @@ fun arrays(): List { returns("String") body(Platform.JVM) { "return java.util.Arrays.toString(this)" } annotations(Platform.JS, """@library("arrayToString")""") - body(Platform.JS) { "return noImpl" } + body(Platform.JS) { "definedExternally" } } templates add f("contentDeepToString()") { @@ -110,7 +110,7 @@ fun arrays(): List { returns("String") body(Platform.JVM) { "return java.util.Arrays.deepToString(this)" } annotations(Platform.JS, """@library("arrayDeepToString")""") - body(Platform.JS) { "return noImpl" } + body(Platform.JS) { "definedExternally" } } templates add f("contentHashCode()") { @@ -123,7 +123,7 @@ fun arrays(): List { returns("Int") body(Platform.JVM) { "return java.util.Arrays.hashCode(this)" } annotations(Platform.JS, """@library("arrayHashCode")""") - body(Platform.JS) { "return noImpl" } + body(Platform.JS) { "definedExternally" } } templates add f("contentDeepHashCode()") { @@ -141,7 +141,7 @@ fun arrays(): List { returns("Int") body(Platform.JVM) { "return java.util.Arrays.deepHashCode(this)" } annotations(Platform.JS, """@library("arrayDeepHashCode")""") - body(Platform.JS) { "return noImpl" } + body(Platform.JS) { "definedExternally" } } templates addAll PrimitiveType.defaultPrimitives.map { primitive -> diff --git a/libraries/tools/kotlin-stdlib-gen/src/templates/SpecialJVM.kt b/libraries/tools/kotlin-stdlib-gen/src/templates/SpecialJVM.kt index 8372e72ec35..78f359325ae 100644 --- a/libraries/tools/kotlin-stdlib-gen/src/templates/SpecialJVM.kt +++ b/libraries/tools/kotlin-stdlib-gen/src/templates/SpecialJVM.kt @@ -348,7 +348,7 @@ object CommonArrays { } if (primitive != PrimitiveType.Long) { annotations(Platform.JS, """@library("primitiveArraySort")""") - body(Platform.JS) { "noImpl" } + body(Platform.JS) { "definedExternally" } } else { body(Platform.JS) {