Browse Source

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

Simon Krajewski 13 years ago
parent
commit
daf50cd06e
1 changed files with 1 additions and 1 deletions
  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);
 	}