Browse Source

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

Dan Korostelev 10 years ago
parent
commit
3c36f07e0b
1 changed files with 1 additions and 1 deletions
  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 {