mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 01:26:22 +00:00
LibJS: Use ThrowCompletionOr in species_constructor()
Also add spec step comments to it as well as a missing exception check while we're here.
This commit is contained in:
parent
c4c40f4cf3
commit
3d43eb0774
Notes:
sideshowbarker
2024-07-18 03:54:27 +09:00
Author: https://github.com/linusg
Commit: 3d43eb0774
Pull-request: https://github.com/SerenityOS/serenity/pull/10046
Reviewed-by: https://github.com/IdanHo
Reviewed-by: https://github.com/awesomekling
6 changed files with 29 additions and 28 deletions
|
@ -22,7 +22,7 @@ Reference make_super_property_reference(GlobalObject&, Value actual_this, String
|
|||
ThrowCompletionOr<Value> require_object_coercible(GlobalObject&, Value);
|
||||
size_t length_of_array_like(GlobalObject&, Object const&);
|
||||
ThrowCompletionOr<MarkedValueList> create_list_from_array_like(GlobalObject&, Value, Function<ThrowCompletionOr<void>(Value)> = {});
|
||||
FunctionObject* species_constructor(GlobalObject&, Object const&, FunctionObject& default_constructor);
|
||||
ThrowCompletionOr<FunctionObject*> species_constructor(GlobalObject&, Object const&, FunctionObject& default_constructor);
|
||||
Realm* get_function_realm(GlobalObject&, FunctionObject const&);
|
||||
bool is_compatible_property_descriptor(bool extensible, PropertyDescriptor const&, Optional<PropertyDescriptor> const& current);
|
||||
bool validate_and_apply_property_descriptor(Object*, PropertyName const&, bool extensible, PropertyDescriptor const&, Optional<PropertyDescriptor> const& current);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue