blob: 2be5edab897510e8b9a0a5fc30874d35dfbfff7c [file] [log] [blame] [edit]
'use strict';
const common = require('../common');
const assert = require('assert');
const { Gunzip } = require('zlib');
const gunzip = new Gunzip({ objectMode: true });
gunzip.on('error', common.mustNotCall());
assert.throws(() => {
gunzip.write({});
}, {
name: 'TypeError',
code: 'ERR_INVALID_ARG_TYPE'
});