evaluation: add more binary operators

This commit is contained in:
Henry Zhu 2015-09-01 10:14:38 -04:00
parent 947ded1563
commit 5bb42ed10d

View File

@ -162,6 +162,14 @@ export function evaluate(): { confident: boolean; value: any } {
case "!=": return left != right;
case "===": return left === right;
case "!==": return left !== right;
case "|": return left | right;
case "&": return left & right;
case "^": return left ^ right;
case "<<": return left << right;
case ">>": return left >> right;
case ">>>": return left >>> right;
case "in": return left in right;
case "instanceof": return left instanceof right;
}
}