JS backend: use native function for parseInt.
Add radix parameter to parseInt. (cherry picked from commit b6be98d)
This commit is contained in:
@@ -18,8 +18,7 @@ public fun println(s : Any?) {}
|
||||
library("print")
|
||||
public fun print(s : Any?) {}
|
||||
//TODO: consistent parseInt
|
||||
library("parseInt")
|
||||
public fun parseInt(s : String) : Int = js.noImpl
|
||||
native public fun parseInt(s: String, radix: Int = 10): Int = js.noImpl
|
||||
library
|
||||
public fun safeParseInt(s : String) : Int? = js.noImpl
|
||||
library
|
||||
|
||||
Reference in New Issue
Block a user