• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict';
2// https://github.com/nodejs/node/issues/6034
3
4const common = require('../common');
5const assert = require('assert');
6const zlib = require('zlib');
7
8const decompress = zlib.createGunzip(15);
9
10decompress.on('error', common.mustCall((err) => {
11  assert.strictEqual(decompress._closed, true);
12  decompress.close();
13}));
14
15assert.strictEqual(decompress._closed, false);
16decompress.write('something invalid');
17