Closed
Bug 823103
Opened 13 years ago
Closed 13 years ago
Some syntax warning about debugger-controller.js/debugger-view.js when opening debugger.
Categories
(DevTools :: Debugger, defect)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: tetsuharu, Unassigned)
Details
[Environment]
* http://hg.mozilla.org/mozilla-central/rev/bfd85c9652fa
[Result]
---------------------
Warning: SyntaxError: test for equality (==) mistyped as assignment (=)?
Source File: chrome://browser/content/debugger-controller.js
Line: 679, Column: 45
Source Code:
} while (environment = environment.parent);
--------------------
Warning: SyntaxError: test for equality (==) mistyped as assignment (=)?
Source File: chrome://browser/content/debugger-view.js
Line: 1238, Column: 39
Source Code:
while (firstChild = list.firstChild) {
--------------------
[More Info]
Does these notation have some special reason? Or Are these careless mistake?
Comment 1•13 years ago
|
||
These are what they're supposed to be -- assignments. Probably adding another pair of parans would silence the warning; something like:
> while ((environment = environment.parent))
Comment 2•13 years ago
|
||
I don't think we should abide by the non-standard strict mode warnings.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
Updated•8 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•