LibJS: Convert iterable_to_list_of_type() to ThrowCompletionOr

This commit is contained in:
Linus Groh 2021-09-15 23:11:02 +01:00
commit f2b5ddd167
Notes: sideshowbarker 2024-07-18 03:49:41 +09:00
3 changed files with 13 additions and 14 deletions

View file

@ -84,7 +84,7 @@ struct SecondsStringPrecision {
u32 increment;
};
MarkedValueList iterable_to_list_of_type(GlobalObject&, Value items, Vector<OptionType> const& element_types);
ThrowCompletionOr<MarkedValueList> iterable_to_list_of_type(GlobalObject&, Value items, Vector<OptionType> const& element_types);
Object* get_options_object(GlobalObject&, Value options);
Value get_option(GlobalObject&, Object const& options, PropertyName const& property, Vector<OptionType> const& types, Vector<StringView> const& values, Value fallback);
template<typename NumberType>