Exit from a setImmediate callback
This commit is contained in:
parent
516ff0644c
commit
f5774e3fb2
1 changed files with 4 additions and 1 deletions
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
|
var app = require('electron').app
|
||||||
|
|
||||||
app.on('ready', function () {
|
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) {
|
process.on('exit', function (code) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue