浏览代码

[std] a bit of safety here

Rudy Ges 1 年之前
父节点
当前提交
fd51af810f
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;