MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / handleStdoutEvent

Function handleStdoutEvent

src/debug/dart_debug_impl.ts:1421–1428  ·  view source on GitHub ↗
(event: VMWriteEvent)

Source from the content-addressed store, hash-verified

1419 }
1420
1421 public handleStdoutEvent(event: VMWriteEvent): void {
1422 if (!event.bytes)
1423 return;
1424 const buff = Buffer.from(event.bytes, "base64");
1425 const message = buff.toString("utf8");
1426 // Use the promise from above, to avoid stdout getting out of order with logging events.
1427 this.lastLoggingEvent = this.lastLoggingEvent.then(() => this.logStdout(message));
1428 }
1429
1430 // Logging
1431 public async processLoggingEvent(event: VMEvent): Promise<void> {

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected