Files
scriptc/tests/corpus/process-uncaught-handler-throws.cjs
Chris Tate 13718c7ac1 Preserve native class state and handle terminal process events (#571)
- Preserve fields, accessors, added properties, and cyclic references across untyped class boundaries.
- Support platform signal names and native exception handlers that resume queued work.
2026-09-29 09:09:34 -05:00

7 lines
209 B
JavaScript

// @exit: 7
process.once("uncaughtException", (error, origin) => {
console.log("handler", error.message, origin);
throw new Error("handler failed");
});
setTimeout(() => { throw new Error("timer"); }, 1);