Bug 958734: Add extra layer of parens to fix JS warning in JSDOMParser.js. r=bnicholson
authorDaniel Holbert <dholbert@cs.stanford.edu>
Fri, 10 Jan 2014 15:28:51 -0800
changeset 162996 744f49b625e9cf45aca79be47e24e878b91d6b34
parent 162995 e7b3360cd07aa0137612450b1be0daba8308befb
child 162997 7dde33979144cd3abc7d70a2b794273411d0e597
push id38347
push userdholbert@mozilla.com
push dateFri, 10 Jan 2014 23:29:08 +0000
treeherdermozilla-inbound@744f49b625e9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbnicholson
bugs958734
milestone29.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 958734: Add extra layer of parens to fix JS warning in JSDOMParser.js. r=bnicholson
mobile/android/chrome/content/JSDOMParser.js
--- a/mobile/android/chrome/content/JSDOMParser.js
+++ b/mobile/android/chrome/content/JSDOMParser.js
@@ -774,17 +774,17 @@
       this.currentChar = index;
     },
 
     /**
      * Reads child nodes for the given node.
      */
     readChildren: function (node) {
       let child;
-      while (child = this.readNode()) {
+      while ((child = this.readNode())) {
         // Don't keep Comment nodes
         if (child.nodeType !== 8) {
           node.childNodes.push(child);
           child.parentNode = node;
         }
       }
     },