diff --git a/ext/node/polyfills/_brotli.js b/ext/node/polyfills/_brotli.js index ebd03515615ec0..e7d594fe5662be 100644 --- a/ext/node/polyfills/_brotli.js +++ b/ext/node/polyfills/_brotli.js @@ -193,8 +193,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),