(scriptContents)
| 386 | } |
| 387 | |
| 388 | static async startViaSignal(scriptContents) { |
| 389 | const instance = new NodeInstance( |
| 390 | ['--expose-internals', '--inspect-port=0'], |
| 391 | `${scriptContents}\nprocess._rawDebug('started');`, undefined); |
| 392 | const msg = 'Timed out waiting for process to start'; |
| 393 | while (await fires(instance.nextStderrString(), msg, TIMEOUT) !== 'started'); |
| 394 | process._debugProcess(instance._process.pid); |
| 395 | return instance; |
| 396 | } |
| 397 | |
| 398 | onStderrLine(line) { |
| 399 | this.emit('stderr', line); |
no test coverage detected