LibJS: Change GetDurationUnitOptions to require a string for prevStyle

This is an editoral change in the Intl.DurationFormat proposal. See:
https://github.com/tc39/proposal-intl-duration-format/commit/62ee645
This commit is contained in:
Timothy Flynn
2022-08-30 11:13:33 -04:00
committed by Tim Flynn
parent 1778462d97
commit aabd06722f
Notes: sideshowbarker 2024-07-17 07:37:41 +09:00
3 changed files with 5 additions and 4 deletions

View File

@@ -98,8 +98,8 @@ ThrowCompletionOr<Object*> DurationFormatConstructor::construct(FunctionObject&
// 15. Set durationFormat.[[DataLocale]] to r.[[dataLocale]].
duration_format->set_data_locale(move(result.data_locale));
// 16. Let prevStyle be undefined.
Optional<String> previous_style;
// 16. Let prevStyle be the empty String.
auto previous_style = String::empty();
// 17. For each row in Table 1, except the header row, in table order, do
for (auto const& duration_instances_component : duration_instances_components) {