Skip to content

Commit

Permalink
Update text-encoder-stream.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarred-Sumner committed Aug 10, 2024
1 parent 5f08478 commit 7d018fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bench/snippets/text-encoder-stream.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7d018fb

Please sign in to comment.