From acd2d22d919e46ed18afcf7323e618cdf31e0a21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Tue, 2 Jul 2024 19:01:12 +0900 Subject: [PATCH] Update `swc_core` Closes GH-48. Reviewed-by: Titus Wormer --- Cargo.toml | 2 +- tests/test.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c113d4a..f29c9b9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ serializable = ["serde"] [dependencies] markdown = "1.0.0-alpha.17" serde = { version = "1", optional = true } -swc_core = { version = "0.95.0", features = [ +swc_core = { version = "0.96.0", features = [ "ecma_ast", "ecma_visit", "ecma_codegen", diff --git a/tests/test.rs b/tests/test.rs index 6e90824..1adcac0 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -327,7 +327,7 @@ fn err_expression_broken_multiline_comment_a() { .err() .unwrap() .to_string(), - "1:6: Could not parse expression with swc: Unexpected eof (mdxjs-rs:swc)", + "1:6: Could not parse expression with swc: Unterminated block comment (mdxjs-rs:swc)", "should crash on an unclosed block comment after an expression", ); } @@ -339,7 +339,7 @@ fn err_expression_broken_multiline_comment_b() { .err() .unwrap() .to_string(), - "1:6: Could not parse expression with swc: Unterminated block comment (mdxjs-rs:swc)", + "1:2: Could not parse expression with swc: Unexpected eof (mdxjs-rs:swc)", "should crash on an unclosed block comment in an empty expression", ); }