(line: string)
| 210 | } |
| 211 | |
| 212 | function onLine(line: string) { |
| 213 | stderr += line + '\n'; |
| 214 | const match = line.match(/^DevTools listening on (ws:\/\/.*)$/); |
| 215 | if (!match) return; |
| 216 | cleanup(); |
| 217 | resolve(match[1]); |
| 218 | } |
| 219 | |
| 220 | function cleanup() { |
| 221 | timeout.dispose(); |