swc/ecmascript/minifier/tests/compress/fixture/terser/issue-2535-2/4/input.js
강동윤 33a43f85b1
feat(es/minifier): Implement more rules (#1766)
swc_ecma_minifier:
 - Implement more rules.

swc_ecma_transforms_base:
 - `resolver`: Fix syntax context of catch block.

swc_ecma_transforms_optimization:
 - `expr_simplifier`: Fix a bug related to `this` of call expressions.
 - `dead_branch_remover`: Don't reduce switch cases if test is now known.
 - `dead_branch_remover`: Don't break `&&`.
2021-06-29 16:11:22 +09:00

5 lines
140 B
JavaScript

console.log((x() && false) || y());
console.log((y() && false) || x());
console.log(x() && false && y());
console.log(y() && false && x());