Skip to content

Commit

Permalink
add testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
CPunisher committed Jul 11, 2024
1 parent 8759d76 commit cb203c9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions crates/swc_ecma_minifier/tests/fixture/issues/9176/input.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"use strict";
const k = (function () {
switch (-0) {
case 0:
console.log("hi");
break;
default:
throw 0;
}
})();
2 changes: 2 additions & 0 deletions crates/swc_ecma_minifier/tests/fixture/issues/9176/output.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"use strict";
console.log("hi");

0 comments on commit cb203c9

Please sign in to comment.