Skip to content

Commit

Permalink
Add missing parseError function (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
bramus authored Aug 28, 2023
1 parent 51fe7b4 commit 1e8cda4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/scroll-timeline-css-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,10 @@ export class StyleParser {
}
}

parseError(p, msg) {
return Error(`(${p.name ? p.name : '<anonymous file>'}): ${msg}`);
}

eatUntil(s, p, replaceWithSpace=false) {
const startIndex = p.index;
while (!this.lookAhead(s, p)) {
Expand Down

0 comments on commit 1e8cda4

Please sign in to comment.