KJS: change visibility of subSequence helper function to internal to avoid to use it directly from kotlin

This commit is contained in:
Zalim Bashorov
2017-01-27 22:29:55 +03:00
parent d5dca38d68
commit a49ad3ca69
+1 -1
View File
@@ -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)
}