()
| 2021 | this.str = str; |
| 2022 | } |
| 2023 | next() { |
| 2024 | const match = this.re.exec(this.str); |
| 2025 | if (match === null) return { done: true }; |
| 2026 | if (match[0].length === 0) this.re.lastIndex++; |
| 2027 | return { value: match }; |
| 2028 | } |
| 2029 | }; |
| 2030 | var RegExpIterable = class { |
| 2031 | constructor(re, flags, str) { |