소스 검색

removed 'here' references

Nicolas Cannasse 15 년 전
부모
커밋
b3a3ef8bcb
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      tests/unit/Test.hx

+ 4 - 4
tests/unit/Test.hx

@@ -110,7 +110,7 @@ class Test #if swf_mark implements mt.Protect #end #if as3 implements haxe.Publi
 	static var AMAX = 3;
 	static var timer : haxe.Timer;
 
-	dynamic static function report( msg : String, pos : haxe.PosInfos ) {
+	dynamic static function report( msg : String, ?pos : haxe.PosInfos ) {
 		if( reportInfos != null ) {
 			msg += " ("+reportInfos+")";
 			reportInfos = null;
@@ -119,14 +119,14 @@ class Test #if swf_mark implements mt.Protect #end #if as3 implements haxe.Publi
 		reportCount++;
 		if( reportCount == 10 ) {
 			trace("Too many errors");
-			report = function(msg,pos) {};
+			report = function(msg,?pos) {};
 		}
 	}
 
 	static function checkDone() {
 		if( asyncWaits.length != 0 ) return;
 		if( asyncCache.length == 0 ) {
-			report("DONE ["+count+" tests]",here);
+			report("DONE ["+count+" tests]");
 			return;
 		}
 		resetTimer();
@@ -206,7 +206,7 @@ class Test #if swf_mark implements mt.Protect #end #if as3 implements haxe.Publi
 			var stack = haxe.Stack.toString(haxe.Stack.exceptionStack());
 			try msg = Std.string(e) catch( e : Dynamic ) {};
 			reportCount = 0;
-			report("ABORTED : "+msg+" in "+Type.getClassName(current),here);
+			report("ABORTED : "+msg+" in "+Type.getClassName(current));
 			reportInfos = null;
 			trace("STACK :\n"+stack);
 		}