mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 01:59:31 +00:00
LibJS: Use implicit ThrowCompletionOr<T> constructor where possible
Luckily this is not very widespread yet as most of it would happen in the various JS functions instead of AOs.
This commit is contained in:
parent
894834b5d5
commit
0881f8160f
Notes:
sideshowbarker
2024-07-18 02:06:37 +09:00
Author: https://github.com/linusg
Commit: 0881f8160f
Pull-request: https://github.com/SerenityOS/serenity/pull/10548
Reviewed-by: https://github.com/IdanHo ✅
12 changed files with 25 additions and 25 deletions
|
@ -676,7 +676,7 @@ ThrowCompletionOr<Optional<PropertyDescriptor>> Object::internal_get_own_propert
|
|||
descriptor.configurable = attributes.is_configurable();
|
||||
|
||||
// 9. Return D.
|
||||
return { descriptor };
|
||||
return descriptor;
|
||||
}
|
||||
|
||||
// 10.1.6 [[DefineOwnProperty]] ( P, Desc ), https://tc39.es/ecma262/#sec-ordinary-object-internal-methods-and-internal-slots-defineownproperty-p-desc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue