mirror of
https://github.com/swc-project/swc.git
synced 2024-12-30 17:15:11 +03:00
ef6a745599
swc_ecma_minifier: - Implement `evaluate` partially. - Store 'expected output' from terser along with our result. swc_ecma_transforms_base: - `fixer`: Don't wrap `+ (a % b)`. swc_ecma_transforms_optimization: - `expr_simplifier`: Preserve this in calls.
30 lines
546 B
JavaScript
30 lines
546 B
JavaScript
var a;
|
|
a = true;
|
|
a = 1;
|
|
a = 6;
|
|
a = true;
|
|
a = "string";
|
|
a = "5";
|
|
a = -4.5;
|
|
a = 6;
|
|
a = condition;
|
|
a = console.log("b");
|
|
a = console.log("c");
|
|
a = 2 * condition;
|
|
a = condition + 3;
|
|
a = 4 - condition;
|
|
a = condition / 5;
|
|
a = 6 % condition;
|
|
a = 7;
|
|
a = console.log(null);
|
|
a = console.log(condition && null);
|
|
a = condition || true;
|
|
a = console.log("a") || 2;
|
|
a = 4 - condition || "string";
|
|
a = 6 << condition || -4.5;
|
|
a = condition || false;
|
|
a = console.log("b") || NaN;
|
|
a = console.log("c") || 0;
|
|
a = 2 * condition || void 0;
|
|
a = condition + 3 || null;
|