1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-20 20:42:19 -05:00
This commit is contained in:
Philipp Claßen 2025-01-20 15:54:33 +01:00 committed by GitHub
commit 194f852573
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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),