Skip to content

Commit d6faa11

Browse files
committed
test(minify): retire the folded constants from OXC_SMALLER and list their gzip cost
1 parent 6c955f9 commit d6faa11

2 files changed

Lines changed: 5 additions & 8 deletions

File tree

‎test/helpers/oxcSmaller.js‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ const OXC_SMALLER_BY_REASON = [
2323
"swc minifier: fixture/issues/12311/input.js",
2424
"swc minifier: fixture/issues/6636/input.js",
2525
"swc minifier: fixture/issues/8324/input.js",
26-
"swc minifier: fixture/issues/8622/input.js",
2726
"swc minifier: fixture/issues/object-accessor-function-boundary/input.js",
2827
"swc minifier: fixture/projects/backbone/7/input.js",
2928
"swc minifier: fixture/projects/mootools/4/input.js",
@@ -367,10 +366,6 @@ const OXC_SMALLER_BY_REASON = [
367366
"swc minifier: fixture/projects/yui/1/input.js"
368367
]
369368
],
370-
[
371-
"oxc follows a variable's value through its reassignments and folds the result",
372-
["terser compress: drop-unused/issue_t161_top_retain_15"]
373-
],
374369
[
375370
"oxc normalizes the syntax before compressing it, as oxc's `peephole/normalize.rs` tests show",
376371
[
@@ -427,10 +422,8 @@ const OXC_SMALLER_BY_REASON = [
427422
[
428423
"oxc folds arithmetic, comparisons and concatenation of constants",
429424
[
430-
"swc exec: terser_drop_unused_issue_t161_top_retain_15",
431425
"terser compress: const/issue_1396",
432-
"terser compress: destructuring/empty_object_destructuring_misc",
433-
"terser compress: drop-unused/issue_t161_top_retain_14"
426+
"terser compress: destructuring/empty_object_destructuring_misc"
434427
]
435428
],
436429
[

‎test/specCases/minify-corpora.spectest.js‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1343,6 +1343,10 @@ const IMPROVED_YET_BIGGER = {
13431343
"17 bytes fewer, 6 more gzipped: `\"Infinity\"` and `\"NaN\"` broke the run of `.toString()` calls gzip reused",
13441344
"issue-597/beautify_off_1 (the default minimizer's options)":
13451345
"17 bytes fewer, 6 more gzipped: `\"Infinity\"` and `\"NaN\"` broke the run of `.toString()` calls gzip reused",
1346+
"drop-unused/issue_t161_top_retain_14 (reminify 4 {\"toplevel\":true})":
1347+
"5 bytes fewer, 2 more gzipped: the products of `x`, `y` and `z` folded no longer repeat the `n*u,n*e,u*e` names gzip matched",
1348+
"drop-unused/issue_t161_top_retain_15 (reminify 4 {\"toplevel\":true})":
1349+
"5 bytes fewer, 2 more gzipped: the products of `x`, `y` and `z` folded no longer repeat the `n*u,n*e,u*e` names gzip matched",
13461350
"issue-597/beautify_off_1 (a module mangled at its top level)":
13471351
"17 bytes fewer, 5 more gzipped: `\"Infinity\"` and `\"NaN\"` broke the run of `.toString()` calls gzip reused",
13481352
"issue-597/beautify_off_1 (reminify 2 {\"mangle\":false})":

0 commit comments

Comments
 (0)