提交 cb980e6f 编写于 作者: J James Strachan

added RuntimeException, NoSuchElementException and missing Iterator.remove() function

上级 3d8fbb47
......@@ -25,6 +25,8 @@ fun safeParseDouble(s : String) : Double? = js.noImpl
library
open class Exception() : Throwable() {}
library
open class RuntimeException() : Exception() {}
library
class NumberFormatException() : Exception() {}
native
......
......@@ -19,6 +19,7 @@ library
public open class Iterator<T>() {
open fun next() : T = js.noImpl
open fun hasNext() : Boolean = js.noImpl
open fun remove() : Unit = js.noImpl
}
library
......@@ -173,4 +174,8 @@ library
public class StringBuilder() {
public fun append(obj : Any) : StringBuilder = js.noImpl
public fun toString() : String = js.noImpl
}
\ No newline at end of file
}
library
class NoSuchElementException() : Exception() {}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册