swc/ecmascript/minifier/tests/terser/compress/conditionals/cond_9/output.js
강동윤 99e738643a
feat(es/minifier): Implement rules and classify tests (#1750)
swc_ecma_minifier:
 - Classify tests so we can focus on MVP.
2021-05-28 19:44:03 +09:00

14 lines
310 B
JavaScript

function f(x, y) {
g() ? x(1) : x(2);
(y || x)();
x ? y(a, b) : y(d, b, c);
y(a, b, c);
y(a, b, x ? c : f);
y(a, x ? b : e, c);
x ? y(a, b, c) : y(a, e, f);
y(x ? a : d, b, c);
x ? y(a, b, c) : y(d, b, f);
x ? y(a, b, c) : y(d, e, c);
x ? y(a, b, c) : y(d, e, f);
}