JS backend: fixed String.split for the case when using regexp.

Added(overload) String.split with limit parameter.
This commit is contained in:
Zalim Bashorov
2013-08-06 17:24:48 +04:00
parent 0341d875a9
commit 9b09d5f6df
4 changed files with 46 additions and 5 deletions
+6 -3
View File
@@ -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() {}