LibWeb: Use StringView literals for all WebIDL::SimpleExceptions

This commit is contained in:
Linus Groh 2022-10-27 23:18:16 +01:00
commit 6ce08d3f75
Notes: sideshowbarker 2024-07-17 05:02:03 +09:00
6 changed files with 22 additions and 22 deletions

View file

@ -212,7 +212,7 @@ WebIDL::ExceptionOr<String> serialize_node_to_xml_string_impl(JS::NonnullGCPtr<D
// -> Anything else
// Throw a TypeError. Only Nodes and Attr objects can be serialized by this algorithm.
return WebIDL::SimpleException { WebIDL::SimpleExceptionType::TypeError, "Can only serialize Nodes or Attributes." };
return WebIDL::SimpleException { WebIDL::SimpleExceptionType::TypeError, "Can only serialize Nodes or Attributes."sv };
}
// https://w3c.github.io/DOM-Parsing/#dfn-recording-the-namespace-information