1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:27:45 +00:00

LibWeb: Make factory methods of DOM::CustomEvent fallible

This commit is contained in:
Kenneth Myhra 2023-02-14 21:27:42 +01:00 committed by Linus Groh
parent 5ef9e02658
commit 2c8a689390
3 changed files with 6 additions and 6 deletions

View file

@ -1276,7 +1276,7 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<Event>> Document::create_event(DeprecatedSt
} else if (interface_lowercase == "compositionevent") {
event = Event::create(realm, ""); // FIXME: Create CompositionEvent
} else if (interface_lowercase == "customevent") {
event = CustomEvent::create(realm, "");
event = TRY(CustomEvent::create(realm, ""));
} else if (interface_lowercase == "devicemotionevent") {
event = Event::create(realm, ""); // FIXME: Create DeviceMotionEvent
} else if (interface_lowercase == "deviceorientationevent") {