Skip to content

Commit

Permalink
cap
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Jul 19, 2024
1 parent e85d6f9 commit 60c6297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/swc_ecma_codegen/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4082,7 +4082,7 @@ fn get_ascii_only_ident(sym: &str, may_need_quote: bool, target: EsVersion) -> C
}

fn get_quoted_utf16(v: &str, ascii_only: bool, target: EsVersion) -> String {
let mut buf = String::with_capacity(v.len() + 2);
let mut buf = String::with_capacity(v.len() * 12 / 10);
let mut iter = v.chars().peekable();

let mut single_quote_count = 0;
Expand Down

0 comments on commit 60c6297

Please sign in to comment.