Skip to content

Commit c4a5aed

Browse files
committed
test(javascript): record oxc renaming a private name a direct eval reads
The oxc case keeping #used for eval('this.#used') is now 3 bytes bigger than oxc's output, which renames #used to #e and leaves the string as it was, so its eval throws a SyntaxError. It is listed with the outputs oxc gets wrong.
1 parent 536cbbd commit c4a5aed

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
@@ -2844,6 +2844,10 @@ const OXC_SMALLER_BY_REASON = [
28442844
[
28452845
"oxc's output is wrong: it renames `LocalCtor` inside a `with` body, so a `LocalCtor` property on the `with` object is no longer used",
28462846
["swc minifier: fixture/issues/11684/with-scope/input.js"]
2847+
],
2848+
[
2849+
"oxc's output is wrong: it renames a `#private` name a direct `eval` reads, so the `eval` throws a SyntaxError",
2850+
["oxc minifier: peephole/remove_unused_private_members.rs:27"]
28472851
]
28482852
];
28492853

0 commit comments

Comments
 (0)