From 643cb1121f4cc9e7c2a11fd723660c5289c20953 Mon Sep 17 00:00:00 2001 From: Serge Gautherie Date: Mon, 18 Oct 2010 08:43:35 +0200 Subject: [PATCH] Bug 599751 - Javascript strict warnings in nsSearchService.js; (Av1a) Add 2 missing 'let'. r+a-2.0=gavin.sharp. --- toolkit/components/search/nsSearchService.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toolkit/components/search/nsSearchService.js b/toolkit/components/search/nsSearchService.js index 68824250813..39da9fdbed9 100644 --- a/toolkit/components/search/nsSearchService.js +++ b/toolkit/components/search/nsSearchService.js @@ -1867,7 +1867,7 @@ Engine.prototype = { // Adjust the start index to account for the opening quote valueStart = quoteStart + "\"".length; // Find the closing quote - valueEnd = lLine.indexOf("\"", valueStart); + let valueEnd = lLine.indexOf("\"", valueStart); // If there is no closing quote, just go to the end of the line if (valueEnd == -1) valueEnd = aLine.length; @@ -1879,7 +1879,7 @@ Engine.prototype = { LOG("_parseAsSherlock::getInputs: Lines:\n" + aLines); // Filter out everything but non-inputs - lines = aLines.filter(function (line) { + let lines = aLines.filter(function (line) { return /^\s*