mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 10:19:20 +00:00
LibJS: Use ThrowCompletionOr in create_list_from_array_like()
Also add spec step comments to it while we're here.
This commit is contained in:
parent
568296d0cc
commit
c4c40f4cf3
Notes:
sideshowbarker
2024-07-18 03:54:31 +09:00
Author: https://github.com/linusg
Commit: c4c40f4cf3
Pull-request: https://github.com/SerenityOS/serenity/pull/10046
Reviewed-by: https://github.com/IdanHo
Reviewed-by: https://github.com/awesomekling
5 changed files with 42 additions and 29 deletions
|
@ -21,7 +21,7 @@ Object* get_super_constructor(VM&);
|
|||
Reference make_super_property_reference(GlobalObject&, Value actual_this, StringOrSymbol const& property_key, bool strict);
|
||||
ThrowCompletionOr<Value> require_object_coercible(GlobalObject&, Value);
|
||||
size_t length_of_array_like(GlobalObject&, Object const&);
|
||||
MarkedValueList create_list_from_array_like(GlobalObject&, Value, Function<void(Value)> = {});
|
||||
ThrowCompletionOr<MarkedValueList> create_list_from_array_like(GlobalObject&, Value, Function<ThrowCompletionOr<void>(Value)> = {});
|
||||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue