mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-21 05:50:55 +08:00
- Preserve fields, accessors, added properties, and cyclic references across untyped class boundaries. - Support platform signal names and native exception handlers that resume queued work.
9 lines
511 B
JavaScript
9 lines
511 B
JavaScript
process.once("uncaughtExceptionMonitor", (error, origin) => console.log("monitor", error.message, origin));
|
|
process.once("uncaughtException", (error, origin) => {
|
|
console.log("handled rejection", error.message, origin);
|
|
process.once("unhandledRejection", () => { throw new Error("listener"); });
|
|
process.once("uncaughtException", (error, origin) => console.log("handled listener", error.message, origin));
|
|
setTimeout(() => Promise.reject(new Error("next")), 10);
|
|
});
|
|
Promise.reject(new Error("first"));
|