mirror of
https://github.com/nodejs/node.git
synced 2025-05-05 12:04:25 +00:00

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>
11 lines
221 B
JavaScript
11 lines
221 B
JavaScript
'use strict';
|
|
|
|
const common = require('../common');
|
|
const zlib = require('zlib');
|
|
|
|
const ts = zlib.createGzip();
|
|
const buf = Buffer.alloc(1024 * 1024 * 20);
|
|
|
|
ts.on('data', common.mustCall(() => ts.close()));
|
|
ts.end(buf);
|