Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-zlib-close-after-write.js « parallel « test - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d25ccfe381f113a8efe935eb5b6a9ffe8f7e2022 (plain)
1
2
3
4
5
6
7
8
9
'use strict';
const common = require('../common');
const zlib = require('zlib');

zlib.gzip('hello', common.mustCall(function(err, out) {
  const unzip = zlib.createGunzip();
  unzip.write(out);
  unzip.close(common.mustCall(function() {}));
}));