Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
hyf0 committed Dec 16, 2022
1 parent fead479 commit f1e7c5f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions crates/swc_ecma_minifier/tests/mangle/issue-5766/1/input.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
function test(foo, bar) {
try {
const bar = {};
throw "PASS";
} catch (error) {
return bar(error);
}
}
console.log(test(null, (x) => x));
9 changes: 9 additions & 0 deletions crates/swc_ecma_minifier/tests/mangle/issue-5766/1/output.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
function n(n, o) {
try {
const n = {};
throw "PASS";
} catch (n) {
return o(n);
}
}
console.log(n(null, (n)=>n));

0 comments on commit f1e7c5f

Please sign in to comment.