Exit from a setImmediate callback

This commit is contained in:
Kevin Sawicki 2015-12-09 18:39:59 -08:00
parent 516ff0644c
commit f5774e3fb2

View file

@ -1,7 +1,10 @@
var app = require('electron').app
app.on('ready', function () {
app.exit(123)
// This setImmediate call gets the spec passing on Linux
setImmediate(function () {
app.exit(123)
})
})
process.on('exit', function (code) {