[Pkg-mozext-commits] [firebug] 25/59: Fix "console.log(new Error())" in Web Workers (related to issue 7597)
David Prévot
taffit at moszumanska.debian.org
Thu Aug 14 14:52:55 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository firebug.
commit b435d53734674e5e991591c003a41a09477aee69
Author: Simon Lindholm <simon.lindholm10 at gmail.com>
Date: Tue Jul 29 18:46:45 2014 +0200
Fix "console.log(new Error())" in Web Workers (related to issue 7597)
---
extension/content/firebug/console/console.js | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/extension/content/firebug/console/console.js b/extension/content/firebug/console/console.js
index 463dda7..264f727 100644
--- a/extension/content/firebug/console/console.js
+++ b/extension/content/firebug/console/console.js
@@ -7,6 +7,7 @@ define([
"firebug/lib/events",
"firebug/lib/locale",
"firebug/lib/search",
+ "firebug/lib/wrapper",
"firebug/lib/xml",
"firebug/lib/options",
"firebug/chrome/window",
@@ -20,7 +21,7 @@ define([
"firebug/dom/domBaseTree",
"firebug/remoting/debuggerClient",
],
-function(Firebug, FBTrace, Obj, Events, Locale, Search, Xml, Options, Win, Firefox,
+function(Firebug, FBTrace, Obj, Events, Locale, Search, Wrapper, Xml, Options, Win, Firefox,
PanelNotification, ActivableModule, ConsoleBase, SourceLink, StackFrame, StackTrace,
DomBaseTree, DebuggerClient) {
@@ -279,6 +280,10 @@ var Console = Obj.extend(ActivableConsole,
convertApiCallArgument: function(val)
{
+ // All objects are cloned, so unwrapping here is harmless. However it
+ // seems to be needed to avoid Opaque wrappers for Errors, for some
+ // reason...
+ val = Wrapper.unwrapObject(val);
// For the web worker console, some complex objects 'obj' get converted
// into new String(obj.toString()). There is not much we can do about
// this, but at least convert it back to a string so that the display
--
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