-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
Closed
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.zlibIssues and PRs related to the zlib subsystem.Issues and PRs related to the zlib subsystem.
Description
- Version: 14.15.2
- Platform: Linux lbvm 5.4.0-56-generic extending options from a prototype #62~18.04.1-Ubuntu SMP Tue Nov 24 10:07:50 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
- Subsystem:
What steps will reproduce the bug?
Any code using gunzipSync
will crash
$ cat gunzip.js
const { gunzipSync } = require('zlib');
console.log(gunzipSync('fooobar'));
$ node -v
v14.15.2
$ node gunzip.js
internal/streams/readable.js:193
const isDuplex = this instanceof Stream.Duplex;
^
TypeError: Right-hand side of 'instanceof' is not an object
at Gunzip.Readable (internal/streams/readable.js:193:25)
at Gunzip.Duplex (internal/streams/duplex.js:56:12)
at Gunzip.Transform (internal/streams/transform.js:117:10)
at Gunzip.ZlibBase (zlib.js:271:13)
at Gunzip.Zlib (zlib.js:669:12)
at new Gunzip (zlib.js:732:8)
at syncBufferWrapper (zlib.js:765:29)
at Object.<anonymous> (/home/ledion/workspaces/js2bin/gunzip.js:2:13)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
The regression seems to have been introduced in 14.15.2 and is present in 14.15.3.
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.zlibIssues and PRs related to the zlib subsystem.Issues and PRs related to the zlib subsystem.