(re)
| 2553 | return false; |
| 2554 | } |
| 2555 | function match(re) { |
| 2556 | re.lastIndex = cursor; |
| 2557 | let result = re.exec(source); |
| 2558 | if (result === null) { |
| 2559 | throw new SyntaxError(`Expected ${re.toString()}`); |
| 2560 | } |
| 2561 | cursor = re.lastIndex; |
| 2562 | return result; |
| 2563 | } |
| 2564 | function match1(re) { |
| 2565 | return match(re)[1]; |
| 2566 | } |
no test coverage detected