Remove unneeded slice call

This commit is contained in:
Kevin Sawicki 2016-03-18 11:54:34 -07:00
parent 8889c29866
commit a53c7529c1

View file

@ -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);
};