mirror of https://gitee.com/openkylin/nodejs.git
14 lines
270 B
JavaScript
14 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);
|