JS backend: use native function for parseInt.

Add radix parameter to parseInt.

(cherry picked from commit b6be98d)
This commit is contained in:
develar
2013-08-08 19:51:49 +04:00
committed by Zalim Bashorov
parent 33d576c31f
commit 632d878877
3 changed files with 14 additions and 6 deletions
+1 -2
View File
@@ -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