https://github.com/cloudflare/miniflare/issues/203

We switched to using "bytes" streams but, by spec, chunks get transferred in that format. Totally reasonable. However, we pass reusable chunks which then get detached. I'm not sure why the polyfill or fixtures didn't catch this.

We really should be using the byob model instead and copy into a larger chunk for perf anyway so this just makes that more urgent.
}
export function beginWriting(destination: Destination) {}
export function writeChunk(
  destination: Destination,
  chunk: PrecomputedChunk | Chunk,
): void {
  destination.enqueue(chunk);
}
export function writeChunkAndReturn(
  destination: Destination,
  chunk: PrecomputedChunk | Chunk,
): boolean {
  destination.enqueue(chunk);
  return destination.desiredSize > 0;
}
export function completeWriting(destination: Destination) {}
export function close(destination: Destination) {
  destination.close();
}
const textEncoder = new TextEncoder();
export function stringToChunk(content: string): Chunk {
  return textEncoder.encode(content);
}
export function stringToPrecomputedChunk(content: string): PrecomputedChunk {
  return textEncoder.encode(content);
}
export function closeWithError(destination: Destination, error: mixed): void {
  if (typeof destination.error === 'function') {