Skip to content

Commit

Permalink
Update swc_core
Browse files Browse the repository at this point in the history
Closes GH-48.

Reviewed-by: Titus Wormer <[email protected]>
  • Loading branch information
kdy1 committed Jul 2, 2024
1 parent 4f89491 commit acd2d22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
);
}
Expand All @@ -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",
);
}
Expand Down

0 comments on commit acd2d22

Please sign in to comment.