(regExp: RegExp)
| 128 | } |
| 129 | |
| 130 | match(regExp: RegExp) { |
| 131 | if (!regExp.sticky) { |
| 132 | throw new Error(`RegExp ${regExp} does not have a sticky 'y' flag`); |
| 133 | } |
| 134 | regExp.lastIndex = this.#position; |
| 135 | return this.#source.match(regExp); |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | // ----------------------- |
no outgoing calls
no test coverage detected