Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
mark E4X .. nodes as bogus
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Herman committed Oct 21, 2011
1 parent 6cf2f9b commit 6167da0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/e10s/bogosity.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ for (var key in graphNodeTypes)
BogosityBuilder.prototype[key] = bogus("sharp-literals", key, graphNodeTypes[key] - 1);
for (var key in xmlNodeTypes)
BogosityBuilder.prototype[key] = bogus("E4X", key, xmlNodeTypes[key] - 1);
BogosityBuilder.prototype.binaryExpression = function(op, left, right) {
if (op === "..") {
this.stats.xmlDotDot = (this.stats.xmlDotDot || 0) + 1;
this.bogosity++;
}
return null;
};

var builder = new BogosityBuilder();

Expand Down

0 comments on commit 6167da0

Please sign in to comment.