JS backend: fixed String.split for the case when using regexp.
Added(overload) String.split with limit parameter.
This commit is contained in:
@@ -3,15 +3,18 @@ package java.lang
|
||||
import java.io.IOException
|
||||
import js.library
|
||||
|
||||
library("splitString")
|
||||
public fun String.split(regex : String) : Array<String> = js.noImpl
|
||||
|
||||
library("splitString")
|
||||
public fun String.split(regex : String, limit: Int) : Array<String> = js.noImpl
|
||||
|
||||
library
|
||||
open public class Exception(message: String? = null) : Throwable() {}
|
||||
|
||||
library
|
||||
open public class RuntimeException(message: String? = null) : Exception(message) {}
|
||||
|
||||
library("splitString")
|
||||
public fun String.split(regex : String) : Array<String> = js.noImpl
|
||||
|
||||
library
|
||||
public class IllegalArgumentException(message: String? = null) : Exception() {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user