projects
/
platform
/
upstream
/
nodejs.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
src: don't error at startup when cwd doesn't exist
[platform/upstream/nodejs.git]
/
test
/
parallel
/
test-zlib-close-after-write.js
1
var common = require('../common');
2
var assert = require('assert');
3
var zlib = require('zlib');
4
5
var closed = false;
6
7
zlib.gzip('hello', function(err, out) {
8
var unzip = zlib.createGunzip();
9
unzip.write(out);
10
unzip.close(function() {
11
closed = true;
12
});
13
});
14
15
process.on('exit', function() {
16
assert(closed);
17
});