Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Sep 21, 2022
1 parent 1161e12 commit 7a68232
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/swc_ecma_codegen/tests/srcmap.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ try {
}))
} catch (e) {
// Ignore syntax error
if (e instanceof SyntaxError) {
if (e.toString().includes("SyntaxError")) {
console.log(JSON.stringify({
code: '',
map: {},
Expand Down

0 comments on commit 7a68232

Please sign in to comment.