mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-05 22:52:10 +02:00
LibJS: Use MUST() where applicable
This commit is contained in:
@@ -97,7 +97,7 @@ ThrowCompletionOr<Optional<PropertyDescriptor>> StringObject::internal_get_own_p
|
||||
// Assert: IsPropertyKey(P) is true.
|
||||
|
||||
// 2. Let desc be OrdinaryGetOwnProperty(S, P).
|
||||
auto descriptor = Object::internal_get_own_property(property_name).release_value();
|
||||
auto descriptor = MUST(Object::internal_get_own_property(property_name));
|
||||
|
||||
// 3. If desc is not undefined, return desc.
|
||||
if (descriptor.has_value())
|
||||
|
||||
Reference in New Issue
Block a user