зеркало из https://github.com/mozilla/gecko-dev.git
Bug 822446: Add parens around assignment-used-as-loop-condition in nsPlacesAutoComplete.js and nsPlacesExpiration.js, to fix JS strict warning "test for equality mistyped as assignment". r=mak
This commit is contained in:
Родитель
116db33497
Коммит
947aea3167
|
@ -624,7 +624,7 @@ nsPlacesAutoComplete.prototype = {
|
|||
handleResult: function PAC_handleResult(aResultSet)
|
||||
{
|
||||
let row, haveMatches = false;
|
||||
while (row = aResultSet.getNextRow()) {
|
||||
while ((row = aResultSet.getNextRow())) {
|
||||
let match = this._processRow(row);
|
||||
haveMatches = haveMatches || match;
|
||||
|
||||
|
|
|
@ -619,7 +619,7 @@ nsPlacesExpiration.prototype = {
|
|||
return;
|
||||
|
||||
let row;
|
||||
while (row = aResultSet.getNextRow()) {
|
||||
while ((row = aResultSet.getNextRow())) {
|
||||
if (!("_expectedResultsCount" in this))
|
||||
this._expectedResultsCount = row.getResultByName("expected_results");
|
||||
if (this._expectedResultsCount > 0)
|
||||
|
|
Загрузка…
Ссылка в новой задаче