Browse Source

[js] Std.parseInt is @:pure

Dan Korostelev 9 years ago
parent
commit
5c9aa26831
1 changed files with 1 additions and 0 deletions
  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