PR-URL: https://github.com/nodejs/node/pull/11482 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
10 lines
328 B
JavaScript
10 lines
328 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
var assert = require('assert');
|
|
var zlib = require('zlib');
|
|
|
|
zlib.gzip('hello', common.mustCall(function(err, out) {
|
|
var unzip = zlib.createGunzip();
|
|
unzip.close(common.mustCall(function() {}));
|
|
assert.throws(() => unzip.write(out), /^Error: zlib binding closed$/);
|
|
}));
|