diff --git a/ext/node/polyfills/_brotli.js b/ext/node/polyfills/_brotli.js index 308cad42ad..8584d1a09d 100644 --- a/ext/node/polyfills/_brotli.js +++ b/ext/node/polyfills/_brotli.js @@ -204,8 +204,19 @@ export function brotliCompressSync( return Buffer.from(TypedArrayPrototypeSubarray(output, 0, len)); } -export function brotliDecompress(input) { +export function brotliDecompress( + input, + options, + callback, +) { const buf = toU8(input); + + if (typeof options === "function") { + callback = options; + options = {}; + } + + // note: `options` argument is currently not used return PromisePrototypeCatch( PromisePrototypeThen( op_brotli_decompress_async(buf),