We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69327f5 commit 6202f14Copy full SHA for 6202f14
test/parallel/test-zlib-write-after-close.js
@@ -6,7 +6,5 @@ const zlib = require('zlib');
6
zlib.gzip('hello', common.mustCall(function(err, out) {
7
const unzip = zlib.createGunzip();
8
unzip.close(common.mustCall(function() {}));
9
- assert.throws(function() {
10
- unzip.write(out);
11
- });
+ assert.throws(() => unzip.write(out), /^Error: zlib binding closed$/);
12
}));
0 commit comments