mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:07:35 +00:00
LibWeb: Port DOMException interface from DeprecatedString to String
This commit is contained in:
parent
bcb6851c07
commit
41928c2902
65 changed files with 296 additions and 296 deletions
|
@ -248,10 +248,10 @@ WebIDL::ExceptionOr<bool> EventTarget::dispatch_event_binding(Event& event)
|
|||
{
|
||||
// 1. If event’s dispatch flag is set, or if its initialized flag is not set, then throw an "InvalidStateError" DOMException.
|
||||
if (event.dispatched())
|
||||
return WebIDL::InvalidStateError::create(realm(), "The event is already being dispatched.");
|
||||
return WebIDL::InvalidStateError::create(realm(), "The event is already being dispatched."_fly_string);
|
||||
|
||||
if (!event.initialized())
|
||||
return WebIDL::InvalidStateError::create(realm(), "Cannot dispatch an uninitialized event.");
|
||||
return WebIDL::InvalidStateError::create(realm(), "Cannot dispatch an uninitialized event."_fly_string);
|
||||
|
||||
// 2. Initialize event’s isTrusted attribute to false.
|
||||
event.set_is_trusted(false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue