Use a better calling convention for EventEmitter.emit.