From 7a68232ded6b6330bf9a591553a854ab5cc1ea26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Wed, 21 Sep 2022 16:22:20 +0900 Subject: [PATCH] Fix --- crates/swc_ecma_codegen/tests/srcmap.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/swc_ecma_codegen/tests/srcmap.mjs b/crates/swc_ecma_codegen/tests/srcmap.mjs index 70cd0d599eb97..cb2df50abde89 100644 --- a/crates/swc_ecma_codegen/tests/srcmap.mjs +++ b/crates/swc_ecma_codegen/tests/srcmap.mjs @@ -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: {},