We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ae08f0 commit b0d7994Copy full SHA for b0d7994
src/parser/parser_lib.ts
@@ -54,7 +54,7 @@ export class Parser<T> {
54
constructor(parser: InnerParser<T>) {
55
// TODO: remove assertion
56
const ensureParser: InnerParser<T> = (source) => {
57
- assert(source.source.length > source.position);
+ assert(source.source.length >= source.position);
58
return parser(source);
59
};
60
const cache: SourceMemoResult<T> = new SourceMemo();
0 commit comments