summaryrefslogtreecommitdiff
path: root/itjs
diff options
context:
space:
mode:
Diffstat (limited to 'itjs')
-rw-r--r--itjs/boot.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/itjs/boot.js b/itjs/boot.js
index 92e02f5..63ab406 100644
--- a/itjs/boot.js
+++ b/itjs/boot.js
@@ -14,7 +14,7 @@ function it_catcherr(msg, url, line)
{
if (e.stack) // Firefox
{
- stacktrace = e.stack.replace(/^.*?\n/,'').replace(/(?:\n@:0)?\s+$/m,'').replace(/^\(/gm,'{anonymous}(') + ';';
+ stacktrace = e.stack.replace(/^[^\n]*\n/,'').replace(/(\n@)?\s+$/,'$1').replace(/^\(/g,'{anonymous}(') + ';';
callstack_done = true;
}
else if (window.opera && e.message) // Opera