summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2022-01-12 13:56:04 -0500
committerLinus Groh <mail@linusgroh.de>2022-01-13 13:43:57 +0100
commit27c845eef2b1f6257b6dbc6a3c4592e658db94f2 (patch)
tree4c86c02066cba13832e9f4deac44337cca8f1660 /Userland
parent71f7e67a209470380d86cedf3f8e46b2b7f4ca03 (diff)
downloadserenity-27c845eef2b1f6257b6dbc6a3c4592e658db94f2.zip
js: Pretty-print the Intl.DisplayNames [[LanguageDisplay]] internal slot
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Utilities/js.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Utilities/js.cpp b/Userland/Utilities/js.cpp
index 8727493605..0fae2e8abf 100644
--- a/Userland/Utilities/js.cpp
+++ b/Userland/Utilities/js.cpp
@@ -601,6 +601,10 @@ static void print_intl_display_names(JS::Object const& object, HashTable<JS::Obj
print_value(js_string(object.vm(), display_names.style_string()), seen_objects);
js_out("\n fallback: ");
print_value(js_string(object.vm(), display_names.fallback_string()), seen_objects);
+ if (display_names.has_language_display()) {
+ js_out("\n languageDisplay: ");
+ print_value(js_string(object.vm(), display_names.language_display_string()), seen_objects);
+ }
}
static void print_intl_locale(JS::Object const& object, HashTable<JS::Object*>& seen_objects)