mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 18:35:07 +00:00
LibJS+LibWeb: Convert empty PrimitiveString invocators to String
This commit is contained in:
parent
1bcde5d216
commit
34574c5ee8
9 changed files with 13 additions and 13 deletions
|
@ -341,7 +341,7 @@ JS::ThrowCompletionOr<JS::Value> CSSStyleDeclaration::internal_get(JS::PropertyK
|
|||
return Base::internal_get(name, receiver);
|
||||
if (auto maybe_property = property(property_id); maybe_property.has_value())
|
||||
return { JS::PrimitiveString::create(vm(), maybe_property->value->to_string().release_value_but_fixme_should_propagate_errors().to_deprecated_string()) };
|
||||
return { JS::PrimitiveString::create(vm(), DeprecatedString::empty()) };
|
||||
return { JS::PrimitiveString::create(vm(), String {}) };
|
||||
}
|
||||
|
||||
JS::ThrowCompletionOr<bool> CSSStyleDeclaration::internal_set(JS::PropertyKey const& name, JS::Value value, JS::Value receiver)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue