Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumNodeJSprocess.nextTick vs setImmediateSingle-choice MCQ

An error thrown synchronously inside a process.nextTick callback (the callback was scheduled at the top level and never has a try/catch around the throw) does what, by default?

process.nextTick(() => { throw new Error('boom'); }); console.log('after schedule');