PR-URL: https://github.com/nodejs/node/pull/23734 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
13 lines
270 B
JavaScript
13 lines
270 B
JavaScript
'use strict';
|
|
|
|
require('../common');
|
|
|
|
const assert = require('assert');
|
|
const zlib = require('zlib');
|
|
|
|
// verify that the zlib transform does clean up
|
|
// the handle when calling destroy.
|
|
|
|
const ts = zlib.createGzip();
|
|
ts.destroy();
|
|
assert.strictEqual(ts._handle, null);
|