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

This commit is contained in:
James Strachan
2012-05-29 08:47:45 +01:00
parent 3d8fbb4761
commit cb980e6f64
2 changed files with 8 additions and 1 deletions
+2
View File
@@ -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
+6 -1
View File
@@ -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() {}