mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 12:07:14 +02:00
LibJS: Convert Temporal::get_option() to ThrowCompletionOr
This commit is contained in:
Notes:
sideshowbarker
2024-07-18 03:49:34 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/8d6ac267dc2 Pull-request: https://github.com/SerenityOS/serenity/pull/10065 Reviewed-by: https://github.com/IdanHo ✅
@@ -86,7 +86,7 @@ struct SecondsStringPrecision {
|
||||
|
||||
ThrowCompletionOr<MarkedValueList> iterable_to_list_of_type(GlobalObject&, Value items, Vector<OptionType> const& element_types);
|
||||
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);
|
||||
ThrowCompletionOr<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);
|
||||
Optional<String> to_temporal_overflow(GlobalObject&, Object const& normalized_options);
|
||||
|
||||
Reference in New Issue
Block a user