mirror of https://github.com/lukechilds/node.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
342 B
18 lines
342 B
14 years ago
|
var common = require('../common');
|
||
14 years ago
|
var assert = require('assert');
|
||
15 years ago
|
|
||
|
var order = [];
|
||
14 years ago
|
process.nextTick(function() {
|
||
15 years ago
|
setTimeout(function() {
|
||
|
order.push('setTimeout');
|
||
|
}, 0);
|
||
15 years ago
|
|
||
|
process.nextTick(function() {
|
||
|
order.push('nextTick');
|
||
|
});
|
||
14 years ago
|
});
|
||
15 years ago
|
|
||
14 years ago
|
process.on('exit', function() {
|
||
15 years ago
|
assert.deepEqual(order, ['nextTick', 'setTimeout']);
|
||
|
});
|