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.
20 lines
573 B
JavaScript
20 lines
573 B
JavaScript
var a = "foobarbaz";
|
|
var a1 = "foo,bar,baz";
|
|
var a2 = "foonullbarnullbaz";
|
|
var a3 = "foo,bar,baz";
|
|
var a4 = "foo,,baz";
|
|
var a5 = "foo,,baz";
|
|
var a6 = "foo,,baz";
|
|
var b = "foo123bar";
|
|
var c = boo() + "foo123bar" + bar();
|
|
var c1 = "" + boo() + bar() + "foo123bar" + bar();
|
|
var c2 = "12foobar" + baz();
|
|
var c3 = boo() + bar() + "foo123bar" + bar() + "foo";
|
|
var c4 = "12foobar" + baz();
|
|
var c5 = [boo() + bar() + "foo", 1, 2, 3, "bar", bar() + "foo"].join();
|
|
var c6 = ["1,2,,,foo,bar", baz()].join();
|
|
var d = "foo-3bar-baz";
|
|
var e = [].join(foo + bar);
|
|
var f = "";
|
|
var g = "";
|