StaticJsUnhandledRejectionError
Thrown when a sandbox Promise is rejected with no rejection handler.
Import
import { StaticJsUnhandledRejectionError } from "@suntime-js/core";
Extends
Error → StaticJsRuntimeError → StaticJsUnhandledRejectionError
When thrown
Thrown after the realm's microtask queue has been fully drained and one or more Promise rejections were never handled. Typically surfaces during realm.awaitIdle() or at the end of an async evaluation. The thrown property (inherited from StaticJsRuntimeError) holds the rejection reason as a sandboxed value.
See Realms for guidance on using awaitIdle() and Tasks for how evaluation lifecycles work.
Properties
Inherits thrown from StaticJsRuntimeError.