From: Kevin Sawicki Date: Thu, 10 Dec 2015 02:39:59 +0000 (-0800) Subject: Exit from a setImmediate callback X-Git-Tag: v0.36.0~11^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=f5774e3fb24ca403de481e446c3bf68fa78b2c47;p=electron.git Exit from a setImmediate callback --- diff --git a/spec/fixtures/api/quit-app/main.js b/spec/fixtures/api/quit-app/main.js index 4bdeb93a..e2f97aff 100644 --- a/spec/fixtures/api/quit-app/main.js +++ b/spec/fixtures/api/quit-app/main.js @@ -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) {