mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
3e1b1dd4a9
The copyright and license notice is already in the LICENSE file. There is no justifiable reason to also require that it be included in every file, since the individual files are not individually distributed except as part of the entire package.
18 lines
482 B
JavaScript
18 lines
482 B
JavaScript
// Simple tests of most basic domain functionality.
|
|
|
|
var common = require('../common');
|
|
var assert = require('assert');
|
|
|
|
// timeouts call the callback directly from cc, so need to make sure the
|
|
// domain will be used regardless
|
|
setTimeout(function() {
|
|
var domain = require('domain');
|
|
var d = domain.create();
|
|
d.run(function() {
|
|
process.nextTick(function() {
|
|
console.trace('in nexttick', process.domain === d)
|
|
assert.equal(process.domain, d);
|
|
});
|
|
});
|
|
});
|