mirror of
https://github.com/electron/electron.git
synced 2026-01-24 06:48:15 -05:00
Exit from a setImmediate callback
This commit is contained in:
5
spec/fixtures/api/quit-app/main.js
vendored
5
spec/fixtures/api/quit-app/main.js
vendored
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user