diff options
author | Timothy Flynn <trflynn89@pm.me> | 2021-08-26 08:30:12 -0400 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-08-27 12:32:24 +0100 |
commit | a029e3d38af5c58023f17d3ca33eb01fd7eeac18 (patch) | |
tree | 426ebe056beb5850cd3423c9e6ca2bf33b725c8b /Userland/Libraries/LibJS/Runtime/Intl | |
parent | 0f02def3c2003ab9cdfae51e47f84db8e732ad5e (diff) | |
download | serenity-a029e3d38af5c58023f17d3ca33eb01fd7eeac18.zip |
LibJS: Extend Intl.DisplayNames.of to support script tags
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Intl')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Intl/DisplayNamesPrototype.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Intl/DisplayNamesPrototype.cpp b/Userland/Libraries/LibJS/Runtime/Intl/DisplayNamesPrototype.cpp index 3e067c17d1..598c9c4dad 100644 --- a/Userland/Libraries/LibJS/Runtime/Intl/DisplayNamesPrototype.cpp +++ b/Userland/Libraries/LibJS/Runtime/Intl/DisplayNamesPrototype.cpp @@ -83,6 +83,7 @@ JS_DEFINE_NATIVE_FUNCTION(DisplayNamesPrototype::of) result = Unicode::get_locale_territory_mapping(display_names->locale(), code.as_string().string()); break; case DisplayNames::Type::Script: + result = Unicode::get_locale_script_mapping(display_names->locale(), code.as_string().string()); break; case DisplayNames::Type::Currency: break; |