Explorar o código

Fix JS tests.

Bruno Garcia %!s(int64=11) %!d(string=hai) anos
pai
achega
48acf328f6
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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);
+	}
 }