Explorar o código

make sure to not DCE js.Boot.__cast (fixed issue #880)

Simon Krajewski %!s(int64=13) %!d(string=hai) anos
pai
achega
daf50cd06e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      std/js/Boot.hx

+ 1 - 1
std/js/Boot.hx

@@ -179,7 +179,7 @@ class Boot {
 		}
 	}
 
-	private static function __cast(o : Dynamic, t : Dynamic) {
+	@:keep private static function __cast(o : Dynamic, t : Dynamic) {
 		if (__instanceof(o, t)) return o;
 		else throw "Cannot cast " +Std.string(o) + " to " +Std.string(t);
 	}