Skip to content

Commit

Permalink
fix(es/codegen): Fix codegen of synthesized template literals. (#2440)
Browse files Browse the repository at this point in the history
swc_ecma_codegen:
 - Don't handle synthesized backtick specially.
  • Loading branch information
kdy1 authored Oct 15, 2021
1 parent 4c983e9 commit d045244
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ecmascript/codegen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include = ["Cargo.toml", "src/**/*.rs"]
license = "Apache-2.0/MIT"
name = "swc_ecma_codegen"
repository = "https://github.com/swc-project/swc.git"
version = "0.75.0"
version = "0.75.1"

[dependencies]
bitflags = "1"
Expand Down
4 changes: 0 additions & 4 deletions ecmascript/codegen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2929,10 +2929,6 @@ fn unescape_tpl_lit(s: &str, is_synthesized: bool) -> String {
result.push_str("\n");
}

'`' if is_synthesized => {
result.push_str("\\`");
}

// TODO: Handle all escapes
_ => {
result.push(c);
Expand Down

0 comments on commit d045244

Please sign in to comment.