mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-10 00:52:28 +02:00
The WebIDL spec specifies a few "simple" exception types in addition to
the DOMException type, let's support all of those.
This allows functions returning ExceptionOr<T> to throw regular
javascript exceptions (as limited by the webidl spec) by returning a
`DOM::SimpleException { DOM::SimpleExceptionType::T, "error message" }`
which is pretty damn cool :^)
3.1 KiB
3.1 KiB