Skip to content

Commit

Permalink
Fix regression
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Jun 22, 2024
1 parent a45ab2a commit 16d932e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion crates/swc_ecma_parser/src/lexer/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,12 @@ impl<'a> Lexer<'a> {
return;
}

self.emit_error(start, SyntaxError::UnterminatedBlockComment)
let len = self.input.as_str().bytes().len();
self.input.bump_bytes(len);

let span = self.span(start);

self.emit_error_span(span, SyntaxError::UnterminatedBlockComment)
}

#[inline(never)]
Expand Down

0 comments on commit 16d932e

Please sign in to comment.