diff options
Diffstat (limited to 'cli/js/body.ts')
-rw-r--r-- | cli/js/body.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/js/body.ts b/cli/js/body.ts index fc12efa8a..ed21fa0ec 100644 --- a/cli/js/body.ts +++ b/cli/js/body.ts @@ -143,9 +143,10 @@ export class Body implements domTypes.Body { this._stream = this._bodySource; } if (typeof this._bodySource === "string") { + const bodySource = this._bodySource; this._stream = new ReadableStream({ start(controller: ReadableStreamController): void { - controller.enqueue(this._bodySource); + controller.enqueue(bodySource); controller.close(); } }); |