Skip to content

Commit

Permalink
Update js_lexer.zig
Browse files Browse the repository at this point in the history
  • Loading branch information
dylan-conway authored Feb 8, 2025
1 parent 9a9b35d commit fe56fc7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js_lexer.zig
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,7 @@ fn NewLexer_(

inline fn nextCodepoint(it: *LexerType) CodePoint {
if (it.current >= it.source.contents.len) {
it.end = it.source.contents.len;
return -1;
}
const cp_len = strings.wtf8ByteSequenceLengthWithInvalid(it.source.contents.ptr[it.current]);
Expand Down

0 comments on commit fe56fc7

Please sign in to comment.