소스 검색

[js] trim whitespace from exception stack lines when prepareStackTrace is not available

Dan Korostelev 10 년 전
부모
커밋
3c36f07e0b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      std/haxe/CallStack.hx

+ 1 - 1
std/haxe/CallStack.hx

@@ -296,7 +296,7 @@ class CallStack {
 						var line = Std.parseInt(rie10.matched(3));
 						m.push(FilePos( meth == "Anonymous function" ? LocalFunction() : meth == "Global code" ? null : Method(path.join("."),meth), file, line ));
 					} else
-						m.push(Module(line)); // A little weird, but better than nothing
+						m.push(Module(StringTools.trim(line))); // A little weird, but better than nothing
 				}
 				return m;
 			} else {