LibJS: Port Intl locale resolution to String

This commit is contained in:
Timothy Flynn
2023-01-19 13:13:57 -05:00
committed by Linus Groh
parent 2f1184ccdb
commit bb4b6d8ce3
Notes: sideshowbarker 2024-07-17 03:19:14 +09:00
20 changed files with 208 additions and 205 deletions

View File

@@ -105,7 +105,7 @@ ThrowCompletionOr<RelativeTimeFormat*> initialize_relative_time_format(VM& vm, R
return vm.throw_completion<RangeError>(ErrorType::OptionIsNotValidValue, numbering_system, "numberingSystem"sv);
// 8. Set opt.[[nu]] to numberingSystem.
opt.nu = TRY(numbering_system.as_string().deprecated_string());
opt.nu = TRY(numbering_system.as_string().utf8_string());
}
// 9. Let localeData be %RelativeTimeFormat%.[[LocaleData]].