mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:18:12 +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
|
@ -68,9 +68,7 @@ Value DisplayNamesConstructor::construct(FunctionObject& new_target)
|
|||
}
|
||||
|
||||
// 5. Set options to ? GetOptionsObject(options).
|
||||
auto* options = Temporal::get_options_object(global_object, options_value);
|
||||
if (vm.exception())
|
||||
return {};
|
||||
auto* options = TRY_OR_DISCARD(Temporal::get_options_object(global_object, options_value));
|
||||
|
||||
// 6. Let opt be a new Record.
|
||||
LocaleOptions opt {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue