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

12 lines
226 B
JavaScript
Raw Normal View History

process.on('uncaughtException', function(error) {
process.send(error.message);
process.exit(1);
});
process.on('message', function(msg) {
setImmediate(function() {
process.send('ok');
process.exit(0);
});
});