added RuntimeException, NoSuchElementException and missing Iterator.remove() function
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
library
|
||||
class NoSuchElementException() : Exception() {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user