electron/spec/fixtures/module/set-immediate.js

12 lines
226 B
JavaScript
Raw Normal View History

2016-03-25 14:03:49 -06:00
process.on('uncaughtException', function (error) {
2020-03-20 14:28:31 -06:00
process.send(error.message);
process.exit(1);
});
2016-03-25 14:03:49 -06:00
process.on('message', function () {
setImmediate(function () {
2020-03-20 14:28:31 -06:00
process.send('ok');
process.exit(0);
});
});