mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
perf(lexer): remove an extra branch from identifier_name_handler (#912)
This commit is contained in:
parent
9d7e1657e9
commit
7962e81a43
1 changed files with 2 additions and 3 deletions
|
|
@ -444,9 +444,8 @@ impl<'a> Lexer<'a> {
|
|||
}
|
||||
|
||||
fn identifier_name_handler(&mut self) -> &'a str {
|
||||
let mut builder = AutoCow::new(self);
|
||||
let c = self.consume_char();
|
||||
builder.push_matching(c);
|
||||
let builder = AutoCow::new(self);
|
||||
self.consume_char();
|
||||
self.identifier_name(builder)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue