mirror of
https://github.com/nodejs/node.git
synced 2025-05-05 18:29:06 +00:00

Changes in test-zlib-from-string is because var->const pushed us over the max char limit per line. PR-URL: https://github.com/nodejs/node/pull/8627 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: targos - Michaël Zasso <mic.besace@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
10 lines
247 B
JavaScript
10 lines
247 B
JavaScript
'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() {}));
|
|
}));
|