Commit fa44fd5
committed
LibJS: Remove ParserState::lookahead_lexer
The lookahead lexer used by next_token() no longer needs to be kept
alive, since tokens created by Parser::next_token() now have any string
views guaranteed safe by the fact that they point into the one true
SourceCode provided by whoever set up the lexer.1 parent 0dacc94 commit fa44fd5
2 files changed
+2
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4291 | 4291 | | |
4292 | 4292 | | |
4293 | 4293 | | |
4294 | | - | |
4295 | | - | |
4296 | | - | |
4297 | | - | |
| 4294 | + | |
| 4295 | + | |
4298 | 4296 | | |
4299 | 4297 | | |
4300 | 4298 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | | - | |
292 | 291 | | |
293 | 292 | | |
294 | 293 | | |
| |||
0 commit comments