Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes: Uncaught (in promise) ReferenceError: callback is not defined Test program that should then pass: import zlib from 'node:zlib'; import { promisify } from 'node:util'; import { Buffer } from 'node:buffer'; const brotliDecompress = promisify(zlib.brotliDecompress); (async () => { const result = await brotliDecompress(Buffer.from([0x21, 0x0c, 0x00, 0x04, 0x74, 0x65, 0x73, 0x74, 0x03])); console.log(result.toString()); // should print "test" })();
- Loading branch information