MCPcopy Index your code
hub / github.com/nodejs/node / onStderrLine

Method onStderrLine

test/common/inspector-helper.js:398–414  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

396 }
397
398 onStderrLine(line) {
399 this.emit('stderr', line);
400 this._logger.log('[err]', line);
401 if (this._portCallback) {
402 const matches = line.match(/Debugger listening on ws:\/\/.+:(\d+)\/.+/);
403 if (matches) {
404 this._portCallback(matches[1]);
405 this._portCallback = null;
406 }
407 }
408 if (this._stderrLineCallback) {
409 this._stderrLineCallback(line);
410 this._stderrLineCallback = null;
411 } else {
412 this._unprocessedStderrLines.push(line);
413 }
414 }
415
416 httpGet(host, path, hostHeaderValue) {
417 this._logger.log('[test]', `Testing ${path}`);

Callers 1

constructorMethod · 0.95

Calls 4

matchMethod · 0.65
emitMethod · 0.45
logMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected