[Pkg-mozext-commits] [firebug] 24/59: Make console.trace() stack-walking cope with Function xrays (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 b47b05f2619d768e7beb94924f5974ba3f9ca30b
Author: Simon Lindholm <simon.lindholm10 at gmail.com>
Date: Tue Jul 29 18:34:03 2014 +0200
Make console.trace() stack-walking cope with Function xrays (related to issue 7597)
---
extension/content/firebug/console/consoleExposed.js | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/extension/content/firebug/console/consoleExposed.js b/extension/content/firebug/console/consoleExposed.js
index 861a782..fcc932e 100644
--- a/extension/content/firebug/console/consoleExposed.js
+++ b/extension/content/firebug/console/consoleExposed.js
@@ -341,6 +341,7 @@ function createFirebugConsole(context, win)
var frame = Components.stack;
while (frame)
{
+ var unwrappedFunc = Wrapper.unwrapObject(func);
var fileName = frame.filename;
if (fileName)
{
@@ -357,7 +358,7 @@ function createFirebugConsole(context, win)
}
else
{
- var argValues = Array.prototype.slice.call(func.arguments);
+ var argValues = Array.prototype.slice.call(unwrappedFunc.arguments);
var argNames =
StackFrame.guessFunctionArgNamesFromSource(String(func));
@@ -384,7 +385,7 @@ function createFirebugConsole(context, win)
{
try
{
- func = func.caller;
+ func = Wrapper.wrapObject(unwrappedFunc.caller);
if (seenFunctions.has(func))
{
// Recursion; we cannot go on unfortunately.
--
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