mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:27:35 +00:00
LibJS: Stop propagating small OOM errors from Intl abstract operations
This commit is contained in:
parent
c24d317d8f
commit
b6ff25bd26
18 changed files with 74 additions and 73 deletions
|
@ -72,7 +72,7 @@ ThrowCompletionOr<NonnullGCPtr<Object>> SegmenterConstructor::construct(Function
|
|||
// 9. Let localeData be %Segmenter%.[[LocaleData]].
|
||||
|
||||
// 10. Let r be ResolveLocale(%Segmenter%.[[AvailableLocales]], requestedLocales, opt, %Segmenter%.[[RelevantExtensionKeys]], localeData).
|
||||
auto result = TRY(resolve_locale(vm, requested_locales, opt, {}));
|
||||
auto result = resolve_locale(requested_locales, opt, {});
|
||||
|
||||
// 11. Set segmenter.[[Locale]] to r.[[locale]].
|
||||
segmenter->set_locale(move(result.locale));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue