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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
226 B
JavaScript
Raw Normal View History

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