From 7d018fb323ec13118368df8e9773d7604efec65a Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Sat, 10 Aug 2024 03:20:14 -0700 Subject: [PATCH] Update text-encoder-stream.mjs --- bench/snippets/text-encoder-stream.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bench/snippets/text-encoder-stream.mjs b/bench/snippets/text-encoder-stream.mjs index 856f2719a8850a..788e3fb50b8bd1 100644 --- a/bench/snippets/text-encoder-stream.mjs +++ b/bench/snippets/text-encoder-stream.mjs @@ -23,7 +23,7 @@ function create(src) { controller.close(); }, }).pipeThrough(encoderStream); - return await new Response(stream).text(); + return await new Response(stream).bytes(); } // if (new TextDecoder().decode(await runBench(oneKB)) !== src) {