mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-17 07:50:04 +00:00
LibWeb: Port DOMException interface from DeprecatedString to String
This commit is contained in:
parent
bcb6851c07
commit
41928c2902
Notes:
sideshowbarker
2024-07-17 07:06:47 +09:00
Author: https://github.com/shannonbooth
Commit: 41928c2902
Pull-request: https://github.com/SerenityOS/serenity/pull/20968
65 changed files with 296 additions and 296 deletions
|
@ -30,7 +30,7 @@ WebIDL::ExceptionOr<JS::GCPtr<Element>> ParentNode::query_selector(StringView se
|
|||
|
||||
// 2. If s is failure, then throw a "SyntaxError" DOMException.
|
||||
if (!maybe_selectors.has_value())
|
||||
return WebIDL::SyntaxError::create(realm(), "Failed to parse selector");
|
||||
return WebIDL::SyntaxError::create(realm(), "Failed to parse selector"_fly_string);
|
||||
|
||||
auto selectors = maybe_selectors.value();
|
||||
|
||||
|
@ -62,7 +62,7 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<NodeList>> ParentNode::query_selector_all(S
|
|||
|
||||
// 2. If s is failure, then throw a "SyntaxError" DOMException.
|
||||
if (!maybe_selectors.has_value())
|
||||
return WebIDL::SyntaxError::create(realm(), "Failed to parse selector");
|
||||
return WebIDL::SyntaxError::create(realm(), "Failed to parse selector"_fly_string);
|
||||
|
||||
auto selectors = maybe_selectors.value();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue