mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 02:27:35 +00:00
LibJS: Use MUST() where applicable
This commit is contained in:
parent
7cd3f7de61
commit
4d5bd092ea
14 changed files with 58 additions and 56 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue