2015-05-19 13:00:06 +02:00
|
|
|
'use strict';
|
2016-12-30 18:38:06 -05:00
|
|
|
const common = require('../common');
|
2013-10-07 15:39:39 +02:00
|
|
|
|
|
|
|
process.on('beforeExit', common.mustCall(function() {
|
2017-02-03 14:54:19 -05:00
|
|
|
setTimeout(common.mustNotCall(), 5);
|
2013-10-07 15:39:39 +02:00
|
|
|
process.exit(0); // Should execute immediately even if we schedule new work.
|
2016-07-14 11:26:35 -04:00
|
|
|
common.fail();
|
2013-10-07 15:39:39 +02:00
|
|
|
}));
|