mirror of https://github.com/lukechilds/node.git
Felix Geisendörfer
15 years ago
committed by
Ryan Dahl
1 changed files with 17 additions and 0 deletions
@ -0,0 +1,17 @@ |
|||
common = require("../common"); |
|||
assert = common.assert |
|||
|
|||
var order = []; |
|||
process.nextTick(function () { |
|||
process.nextTick(function() { |
|||
order.push('nextTick'); |
|||
}); |
|||
|
|||
setTimeout(function() { |
|||
order.push('setTimeout'); |
|||
}, 0); |
|||
}) |
|||
|
|||
process.addListener('exit', function () { |
|||
assert.deepEqual(order, ['nextTick', 'setTimeout']); |
|||
}); |
Loading…
Reference in new issue