Skip to content

Commit

Permalink
Revert "cap"
Browse files Browse the repository at this point in the history
This reverts commit 60c6297.
  • Loading branch information
kdy1 committed Jul 19, 2024
1 parent 60c6297 commit 7ee7b14
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() * 12 / 10);
let mut buf = String::with_capacity(v.len() + 2);
let mut iter = v.chars().peekable();

let mut single_quote_count = 0;
Expand Down

0 comments on commit 7ee7b14

Please sign in to comment.