Bug 513704 - "bug in errUtils.js" [r=asuth]
authorDavid Ascher <david.ascher@gmail.com>
Tue, 01 Sep 2009 16:44:04 +0100
changeset 3475 9c1a3c3eaa80d09b41eb76e8b885dc5f4b36edc2
parent 3474 e2d7771ba879fcf38159df92c473223ba242bb2a
child 3476 7545b0d96cc7c896a05e738ed51155633512125e
push idunknown
push userunknown
push dateunknown
reviewersasuth
bugs513704
Bug 513704 - "bug in errUtils.js" [r=asuth]
mailnews/base/util/errUtils.js
--- a/mailnews/base/util/errUtils.js
+++ b/mailnews/base/util/errUtils.js
@@ -157,23 +157,23 @@ Stringifier.prototype = {
     if (recurse === undefined)
       recurse = 0;
     if (level === undefined)
       level = 0;
     if (compress === undefined)
       compress = true;
     let pfx = "";
 
-    for (let i = 0; i < level; i++)
+    for (var junk = 0; junk < level; junk++)
       pfx += (compress) ? "| " : "|  ";
 
     let tee = (compress) ? "+ " : "+- ";
 
     if (typeof(o) != "object") {
-      s += pfx + tee + i + " (" + typeof(o) + ") " + o + "\n";
+      s += pfx + tee + " (" + typeof(o) + ") " + o + "\n";
     }
     else {
       for (let i in o) {
         try {
           let t = typeof o[i];
           switch (t) {
             case "function":
               let sfunc = String(o[i]).split("\n");