blob: f8b5fed0ec62b61c4efccc54834d8c42e07ec1c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
var common = require('../common');
var assert = require('assert');
var complete = 0;
process.nextTick(function() {
complete++;
process.nextTick(function() {
complete++;
process.nextTick(function() {
complete++;
});
});
});
setTimeout(function() {
process.nextTick(function() {
complete++;
});
}, 50);
process.nextTick(function() {
complete++;
});
process.on('exit', function() {
assert.equal(5, complete);
process.nextTick(function() {
throw new Error('this should not occur');
});
});
|