(input, pos)
| 543 | * @returns {number} position past the recovery `)` or EOF |
| 544 | */ |
| 545 | const _consumeTheRemnantsOfABadUrl = (input, pos) => { |
| 546 | for (;;) { |
| 547 | if (pos === input.length) return pos; |
| 548 | const cc = input.charCodeAt(pos); |
| 549 | pos++; |
| 550 | if (cc === CC_RIGHT_PARENTHESIS) return pos; |
| 551 | if (_ifTwoCodePointsAreValidEscape(input, pos)) { |
| 552 | pos = _consumeAnEscapedCodePoint(input, pos); |
| 553 | } |
| 554 | } |
| 555 | }; |
| 556 | |
| 557 | /** |
| 558 | * A mutable lexer token. The `next` / `consume` hot path reuses a single |
no test coverage detected