mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:07:36 +00:00
LibJS: Convert get_options_object() to ThrowCompletionOr
This commit is contained in:
parent
f2b5ddd167
commit
08dd1c3e2d
15 changed files with 25 additions and 64 deletions
|
@ -85,7 +85,7 @@ struct SecondsStringPrecision {
|
|||
};
|
||||
|
||||
ThrowCompletionOr<MarkedValueList> iterable_to_list_of_type(GlobalObject&, Value items, Vector<OptionType> const& element_types);
|
||||
Object* get_options_object(GlobalObject&, Value options);
|
||||
ThrowCompletionOr<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>
|
||||
Optional<Variant<String, NumberType>> get_string_or_number_option(GlobalObject&, Object const& options, PropertyName const& property, Vector<StringView> const& string_values, NumberType minimum, NumberType maximum, Value fallback);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue