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
commit 2c8a689390
Notes: sideshowbarker 2024-07-17 03:35:16 +09:00
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") {