Ver Fonte

[std] a bit of safety here

Rudy Ges há 1 ano atrás
pai
commit
fd51af810f
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      std/haxe/Log.hx

+ 1 - 1
std/haxe/Log.hx

@@ -30,7 +30,7 @@ class Log {
 	/**
 		Format the output of `trace` before printing it.
 	**/
-	public static function formatOutput(v:Dynamic, infos:PosInfos):String {
+	public static function formatOutput(v:Dynamic, infos:Null<PosInfos>):String {
 		var str = Std.string(v);
 		if (infos == null)
 			return str;