maxListeners must be a integer, then I changed the condition checking in emitter.setMaxListeners.