1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:48:12 +00:00

LibWeb: Make factory method of Encoding::TextEncoder fallible

This commit is contained in:
Kenneth Myhra 2023-02-19 16:53:44 +01:00 committed by Andreas Kling
parent 77e4432367
commit d7446089ae
2 changed files with 4 additions and 3 deletions

View file

@ -20,7 +20,7 @@ class TextEncoder final : public Bindings::PlatformObject {
WEB_PLATFORM_OBJECT(TextEncoder, Bindings::PlatformObject);
public:
static JS::NonnullGCPtr<TextEncoder> construct_impl(JS::Realm&);
static WebIDL::ExceptionOr<JS::NonnullGCPtr<TextEncoder>> construct_impl(JS::Realm&);
virtual ~TextEncoder() override;