diff --git a/spec/api-web-contents-spec.js b/spec/api-web-contents-spec.js index ca35a231f4b9..d454c1ea6741 100644 --- a/spec/api-web-contents-spec.js +++ b/spec/api-web-contents-spec.js @@ -590,6 +590,12 @@ describe('webContents module', function () { }) describe('destroy()', () => { + // Destroying webContents in its event listener is going to crash when + // Electron is built in Debug mode. + if (process.platform !== 'darwin') { + return + } + let server before(function (done) {