浏览代码

[js] Std.parseInt is @:pure

Dan Korostelev 9 年之前
父节点
当前提交
5c9aa26831
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      std/js/_std/Std.hx

+ 1 - 0
std/js/_std/Std.hx

@@ -40,6 +40,7 @@ import js.Boot;
 		return (cast x) | 0;
 	}
 
+	@:pure
 	public static function parseInt( x : String ) : Null<Int> {
 		var v = untyped __js__("parseInt")(x, 10);
 		// parse again if hexadecimal