Linus Groh
426e32e5c0
LibWeb: Add WebIDL::ExceptionOr constructor for wrapped ValueType
...
This is copied from JS::ThrowCompletionOr and will allow using them
interchangeably with types wrapped by JS::Value such as JS::Object*.
2022-09-27 14:56:17 +01:00
Linus Groh
4461234898
LibWeb: Support plain (throw) JS::Completion in WebIDL::ExceptionOr
...
This makes it possible to propagate exceptions from a function that
returns JS::ThrowCompletionOr via TRY() in another function that returns
WebIDL::ExceptionOr.
2022-09-27 14:56:17 +01:00
Linus Groh
bbaa05fcf9
LibWeb: Move DOMException from DOM/ to WebIDL/
2022-09-25 19:13:31 +01:00
Linus Groh
ad04d7ac9b
LibWeb: Move ExceptionOr from DOM/ to WebIDL/
...
This is a concept fully defined in the Web IDL spec and doesn't belong
in the DOM directory/namespace - not even DOMException, despite the name
:^)
2022-09-25 19:13:31 +01:00