Bug 1126655: Add extra layer of parens in while loop in devtools VariablesView.jsm, to suppress "equality mistyped as assignment" error console warning. r=vporof
authorDaniel Holbert <dholbert@cs.stanford.edu>
Wed, 28 Jan 2015 09:40:29 -0800
changeset 239748 0f7b2674c64a241d36a6e1a3dba6175ef1a8296d
parent 239747 c665e2057216792ec94eac31c645c8ad79ba4a6c
child 239749 c5e6fd99bcb8af1f0b68afdf7d9290310317febd
push id506
push usermleibovic@mozilla.com
push dateThu, 29 Jan 2015 12:40:10 +0000
reviewersvporof
bugs1126655
milestone38.0a1
Bug 1126655: Add extra layer of parens in while loop in devtools VariablesView.jsm, to suppress "equality mistyped as assignment" error console warning. r=vporof
browser/devtools/shared/widgets/VariablesView.jsm
--- a/browser/devtools/shared/widgets/VariablesView.jsm
+++ b/browser/devtools/shared/widgets/VariablesView.jsm
@@ -2043,17 +2043,17 @@ Scope.prototype = {
   /**
    * Gets top level variables view instance.
    * @return VariablesView
    */
   get _variablesView() this._topView || (this._topView = (function(self) {
     let parentView = self.ownerView;
     let topView;
 
-    while (topView = parentView.ownerView) {
+    while ((topView = parentView.ownerView)) {
       parentView = topView;
     }
     return parentView;
   })(this)),
 
   /**
    * Gets the parent node holding this scope.
    * @return nsIDOMNode