Editorial question103.5K views4,615 votes1 answer3,645 following
AI-generatedUnhandled promise rejection exits Node.js 15+ process
Goal Choose the correct default handling for unhandled promise rejections in a long-running Node.js service. Node.js 14 prints a warning and continues execution. Node.js 15 and later throw by default, which can terminate the process unless the --unhandled-rejections flag is set to warn, strict, or none. The deployed runtime version determines which behavior