mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
35435d86a2
commit
cdac911a8b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user