Permalink
Browse files

bugfix in toNodeList

  • Loading branch information...
1 parent dda5337 commit 73def4d3be165e71213b7b74c42b0cf3fa85cd0c @dimvar dimvar committed Nov 14, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/cfa2/jscfa.js
View
@@ -2169,6 +2169,7 @@ function aveq(v1, v2) {
if (len !== os2.length) return false;
if (os1 === os2) return true;
for (i=0; i<len; i++) if (os1[i] !== os2[i]) return false;
+ // os2 = os1; // Some extra sharing is possible.
return true;
}
@@ -4114,13 +4115,13 @@ function initDOMObjs() {
args[0].forEachObjWhile(function(o) {
if (o instanceof Chrome) {
av = avjoin(av, chrarrav);
- both++;
+ both |= 1;
}
if (o instanceof Content) {
av = avjoin(av, conarrav);
- both++;
+ both |= 2;
}
- return both === 2;
+ return both === 3;
});
return new Ans(av);
}

0 comments on commit 73def4d

Please sign in to comment.