Bug 1048622 - Fix 'assignment to undefined variable' warnings in nsBrowserContentHandler.js. r=gavin
--- 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 {