Skip to content

Commit c5bc638

Browse files
test(javascript): list terser's blocks/issue_1664 among what oxc writes smaller
The Annex B correction keeps the call of a block's empty function whose name is also read outside the block.
1 parent dc535ec commit c5bc638

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎test/helpers/oxcSmaller.js‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1418,6 +1418,10 @@ const OXC_SMALLER_BY_REASON = [
14181418
[
14191419
"oxc's output is wrong: it renames a `#private` name a direct `eval` reads, so the `eval` throws a SyntaxError",
14201420
["oxc minifier: peephole/remove_unused_private_members.rs:27"]
1421+
],
1422+
[
1423+
"oxc drops the call of an empty function a sloppy block declares, which webpack keeps where the name is also read outside the block: Annex B leaves that read `undefined` until the block runs, so webpack does not take the function as known",
1424+
["terser compress: blocks/issue_1664"]
14211425
]
14221426
];
14231427

0 commit comments

Comments
 (0)