diff --git a/ext/web/14_compression.js b/ext/web/14_compression.js index 0814958949..beff7a0595 100644 --- a/ext/web/14_compression.js +++ b/ext/web/14_compression.js @@ -35,7 +35,10 @@ this.#transform = new TransformStream({ transform(chunk, controller) { - // TODO(lucacasonato): convert chunk to BufferSource + chunk = webidl.converters.BufferSource(chunk, { + prefix, + context: "chunk", + }); const output = core.opSync( "op_compression_write", rid, @@ -81,7 +84,10 @@ this.#transform = new TransformStream({ transform(chunk, controller) { - // TODO(lucacasonato): convert chunk to BufferSource + chunk = webidl.converters.BufferSource(chunk, { + prefix, + context: "chunk", + }); const output = core.opSync( "op_compression_write", rid,