* </pre>
*/
protected static void shortCircuitAnd(JsExpression arg1, JsExpression arg2,
JsContext<JsExpression> ctx) {
if (arg1 instanceof CanBooleanEval) {
CanBooleanEval eval1 = (CanBooleanEval) arg1;
if (eval1.isBooleanTrue() && !arg1.hasSideEffects()) {
ctx.replaceMe(arg2);
} else if (eval1.isBooleanFalse()) {
ctx.replaceMe(arg1);
}
}
}