Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumNodeJScustom EventEmitter classesSingle-choice MCQ

Your custom emitter emits an `'error'` event in a code path that has no `'error'` listener attached. What is the consequence?

class Job extends EventEmitter {} const job = new Job(); // no job.on('error', ...) anywhere job.emit('error', new Error('boom'));