diff --git a/lib/renderer/api/ipc.js b/lib/renderer/api/ipc.js index ee07c791dc8..d3e21db2a3a 100644 --- a/lib/renderer/api/ipc.js +++ b/lib/renderer/api/ipc.js @@ -9,7 +9,7 @@ deprecate.warn('ipc module', 'require("electron").ipcRenderer'); var ipc = new EventEmitter; ipcRenderer.emit = function(channel, event, ...args) { - ipc.emit.apply(ipc, [channel].concat(slice.call(args))); + ipc.emit.apply(ipc, [channel].concat(args)); return EventEmitter.prototype.emit.apply(ipcRenderer, arguments); };