소스 검색

Fix JS tests.

Bruno Garcia 11 년 전
부모
커밋
48acf328f6
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      std/js/_std/Math.hx

+ 4 - 0
std/js/_std/Math.hx

@@ -80,4 +80,8 @@ extern class Math
 	static inline function isNaN( f : Float ) : Bool {
 		return (untyped __js__("isNaN"))(f);
 	}
+
+	static function __init__() : Void {
+		untyped __feature__("Type.resolveClass", $hxClasses["Math"] = Math);
+	}
 }