You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# nodejs runs the script fine:
$ node repro.js
All good!# deno v1.34.2 throws:
$ deno run repro.js
error: Uncaught TypeError: Error parsing args at position 5: invalid type: byte array, expected a borrowed byte array
createInflate({
^
at Zlib.init (ext:deno_node/_zlib_binding.mjs:146:21)
at Inflate.Zlib (ext:deno_node/_zlib.mjs:352:16)
at new Inflate (ext:deno_node/_zlib.mjs:214:8)
at createInflate (ext:deno_node/_zlib.mjs:45:10)
at file:///Users/daniellamando/Code/tmp.Rn9UISKm/repro.js:4:1
# last working deno version via a docker container:
$ podman run --rm -v (pwd):/src denoland/deno:alpine-1.32.2 run /src/repro.js
All good!
Also I noticed that Deno only allows Buffer instances for dictionary. As per nodejs docs, Uint8Array is accepted since node v8.0 and ArrayBuffer since node v9.4. So perhaps the polyfill should accept them too.
The text was updated successfully, but these errors were encountered:
dictionary
parameter is not accepted anymore when setting up zlib.createDeflate
andcreateInflate
.Minimal reproduction, with zero-length dictionary:
Also I noticed that Deno only allows
Buffer
instances fordictionary
. As per nodejs docs,Uint8Array
is accepted since node v8.0 andArrayBuffer
since node v9.4. So perhaps the polyfill should accept them too.The text was updated successfully, but these errors were encountered: