From b17a2874f8bcb523a6cece558bccec8e15363921 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Fri, 26 Aug 2016 09:51:54 -0700 Subject: [PATCH] Add empty request error handler --- spec/api-ipc-spec.js | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/api-ipc-spec.js b/spec/api-ipc-spec.js index 6b8754a772f4..ff08ae86f6ac 100644 --- a/spec/api-ipc-spec.js +++ b/spec/api-ipc-spec.js @@ -328,6 +328,7 @@ describe('ipc module', function () { it('does not crash on HTTP request objects (regression)', function (done) { const request = http.request({port: 5000, hostname: '127.0.0.1', method: 'GET', path: '/'}) + request.on('error', function () {}) ipcRenderer.once('message', function (event, value) { assert.equal(value.method, 'GET') assert.equal(value.path, '/')