mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:38:11 +00:00
LibWeb: Make Serialize functions infallible
This commit is contained in:
parent
788c2c5a8d
commit
b5893ee115
10 changed files with 95 additions and 105 deletions
|
@ -14,10 +14,10 @@
|
|||
namespace Web::CSS {
|
||||
|
||||
// https://www.w3.org/TR/cssom-1/#dom-css-escape
|
||||
WebIDL::ExceptionOr<String> escape(JS::VM& vm, StringView identifier)
|
||||
WebIDL::ExceptionOr<String> escape(JS::VM&, StringView identifier)
|
||||
{
|
||||
// The escape(ident) operation must return the result of invoking serialize an identifier of ident.
|
||||
return TRY_OR_THROW_OOM(vm, serialize_an_identifier(identifier));
|
||||
return serialize_an_identifier(identifier);
|
||||
}
|
||||
|
||||
// https://www.w3.org/TR/css-conditional-3/#dom-css-supports
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue