mirror of
https://github.com/nodejs/node.git
synced 2025-05-06 03:45:25 +00:00

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.
22 lines
462 B
JavaScript
22 lines
462 B
JavaScript
var common = require('../common');
|
|
var assert = require('assert');
|
|
|
|
process.on('uncaughtException', function(err) {
|
|
console.log('Caught exception: ' + err);
|
|
});
|
|
|
|
var timeoutFired = false;
|
|
setTimeout(function() {
|
|
console.log('This will still run.');
|
|
timeoutFired = true;
|
|
}, 500);
|
|
|
|
process.on('exit', function() {
|
|
assert.ok(timeoutFired);
|
|
});
|
|
|
|
// Intentionally cause an exception, but don't catch it.
|
|
nonexistentFunc();
|
|
console.log('This will not run.');
|
|
|