[Pkg-mozext-commits] [firebug] 34/82: Nicer error messages for transformed expressions
David Prévot
taffit at moszumanska.debian.org
Mon Mar 31 22:45:38 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to tag fbtest-1.11.2
in repository firebug.
commit 885c255aea15670c0ef508ec35f889e6b275ad27
Author: Simon Lindholm <simon.lindholm10 at gmail.com>
Date: Mon Dec 31 21:01:12 2012 +0100
Nicer error messages for transformed expressions
---
extension/content/firebug/console/commandLineExposed.js | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/extension/content/firebug/console/commandLineExposed.js b/extension/content/firebug/console/commandLineExposed.js
index 50b0e0f..116e664 100644
--- a/extension/content/firebug/console/commandLineExposed.js
+++ b/extension/content/firebug/console/commandLineExposed.js
@@ -222,7 +222,11 @@ function createFirebugCommandLine(context, win)
result.source = expr;
result.message = exc.message;
result.lineNumber = lineNumber - line;
- result.fileName = "data:," + encodeURIComponent(expr);
+
+ // Try to make the closure inspector transformation look a bit nicer.
+ var niceExpr = expr.replace(/__fb_scopedVars\(/g, "<get closure>(");
+ result.fileName = "data:," + encodeURIComponent(niceExpr);
+
if (!isXPCException)
result.name = exc.name;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firebug.git
More information about the Pkg-mozext-commits
mailing list