mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 18:47:15 +02:00
LibJS: Use MUST() where applicable
This commit is contained in:
Notes:
sideshowbarker
2024-07-18 03:07:56 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/4d5bd092ea2 Pull-request: https://github.com/SerenityOS/serenity/pull/10327 Reviewed-by: https://github.com/IdanHo ✅
@@ -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