[Pkg-mozext-commits] [firebug] 09/16: Issue 6116 (undefined values are ignored in string formatting of console.log) http://code.google.com/p/fbug/issues/detail?id=6116

David Prévot taffit at moszumanska.debian.org
Mon Mar 31 22:45:31 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to tag fbtest-1.11.1
in repository firebug.

commit 347bc2ae3d9914b0b8e2bb8dbb321a25d8608ae2
Author: Sebastian Zartner <sebastianzartner at gmail.com>
Date:   Thu Dec 6 01:27:04 2012 +0100

    Issue 6116 (undefined values are ignored in string formatting of console.log)
    http://code.google.com/p/fbug/issues/detail?id=6116
---
 extension/content/firebug/console/consolePanel.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/extension/content/firebug/console/consolePanel.js b/extension/content/firebug/console/consolePanel.js
index 20778b8..08ce40f 100644
--- a/extension/content/firebug/console/consolePanel.js
+++ b/extension/content/firebug/console/consolePanel.js
@@ -579,13 +579,14 @@ Firebug.ConsolePanel.prototype = Obj.extend(Firebug.ActivablePanel,
             var part = parts[i];
             if (part && typeof(part) == "object")
             {
-                var object = objects[objIndex++];
+                var object = objects[objIndex];
                 if (part.type == "%c")
                     lastStyle = object.toString();
-                else if (typeof(object) != "undefined")
+                else if (objIndex < objects.length)
                     node = this.appendObject(object, row, part.rep);
                 else
                     node = this.appendObject(part.type, row, FirebugReps.Text);
+                objIndex++;
             }
             else
             {

-- 
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