소스 검색

[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