Browse Source

Fix JS tests.

Bruno Garcia 11 năm trước cách đây
mục cha
commit
48acf328f6
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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);
+	}
 }