From a49ad3ca69b1d573532f5c1bbfeabf0cc47699aa Mon Sep 17 00:00:00 2001 From: Zalim Bashorov Date: Fri, 27 Jan 2017 22:29:55 +0300 Subject: [PATCH] KJS: change visibility of subSequence helper function to internal to avoid to use it directly from kotlin --- js/js.libraries/src/core/builtins.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/js.libraries/src/core/builtins.kt b/js/js.libraries/src/core/builtins.kt index ba103dfac0f..bb7197df501 100644 --- a/js/js.libraries/src/core/builtins.kt +++ b/js/js.libraries/src/core/builtins.kt @@ -39,7 +39,7 @@ internal class PropertyMetadata(@JsName("callableName") val name: String) internal fun noWhenBranchMatched(): Nothing = throw NoWhenBranchMatchedException() @JsName("subSequence") -fun subSequence(c: CharSequence, startIndex: Int, endIndex: Int): CharSequence { +internal fun subSequence(c: CharSequence, startIndex: Int, endIndex: Int): CharSequence { if (c is String) { return c.substring(startIndex, endIndex) }