Bug 1048622 - Fix 'assignment to undefined variable' warnings in nsBrowserContentHandler.js. r=gavin
authorBirunthan Mohanathas <birunthan@mohanathas.com>
Tue, 05 Aug 2014 06:47:17 -0700
changeset 197967 87fd6bec2c8ac3b7292215ae5bccf8e66bff1d2b
parent 197966 da0ef2bd67b4c93f0dfbc16c30c82fe0c0d5a9f9
child 197968 117d151b6d764d6f7b543fa2dc8b9e9738ba5270
push id1036
push userrnewman@mozilla.com
push dateWed, 06 Aug 2014 02:14:58 +0000
treeherderservices-central@3fd543e150c8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgavin
bugs1048622
milestone34.0a1
Bug 1048622 - Fix 'assignment to undefined variable' warnings in nsBrowserContentHandler.js. r=gavin
browser/components/nsBrowserContentHandler.js
--- a/browser/components/nsBrowserContentHandler.js
+++ b/browser/components/nsBrowserContentHandler.js
@@ -777,19 +777,17 @@ nsDefaultCommandLineHandler.prototype = 
         var uri = resolveURIInternal(cmdLine, ar);
         urilist.push(uri);
       }
     }
     catch (e) {
       Components.utils.reportError(e);
     }
 
-    count = cmdLine.length;
-
-    for (i = 0; i < count; ++i) {
+    for (let i = 0; i < cmdLine.length; ++i) {
       var curarg = cmdLine.getArgument(i);
       if (curarg.match(/^-/)) {
         Components.utils.reportError("Warning: unrecognized command line flag " + curarg + "\n");
         // To emulate the pre-nsICommandLine behavior, we ignore
         // the argument after an unrecognized flag.
         ++i;
       } else {
         try {