summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/Intl/RelativeTimeFormat.cpp
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2022-07-19 12:11:34 -0400
committerLinus Groh <mail@linusgroh.de>2022-07-20 18:21:24 +0100
commit292b8908b5a5dac1d837d80ab1200f70a3e169f6 (patch)
treef69b29761bb957cf05adc126cea08de03b38d909 /Userland/Libraries/LibJS/Runtime/Intl/RelativeTimeFormat.cpp
parent0026e9a4c803101d9cb2f28d0b76fc224a3521e3 (diff)
downloadserenity-292b8908b5a5dac1d837d80ab1200f70a3e169f6.zip
LibJS: Hook the Intl mathematical value into Intl.NumberFormat
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Intl/RelativeTimeFormat.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/Intl/RelativeTimeFormat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Intl/RelativeTimeFormat.cpp b/Userland/Libraries/LibJS/Runtime/Intl/RelativeTimeFormat.cpp
index c80252d981..61d88f587c 100644
--- a/Userland/Libraries/LibJS/Runtime/Intl/RelativeTimeFormat.cpp
+++ b/Userland/Libraries/LibJS/Runtime/Intl/RelativeTimeFormat.cpp
@@ -181,7 +181,7 @@ ThrowCompletionOr<Vector<PatternPartitionWithUnit>> partition_relative_time_patt
auto value_partitions = partition_number_pattern(global_object, relative_time_format.number_format(), Value(value));
// 21. Let pr be ! ResolvePlural(relativeTimeFormat.[[PluralRules]], value).
- auto plurality = resolve_plural(global_object, relative_time_format.plural_rules(), Value(value));
+ auto plurality = resolve_plural(relative_time_format.plural_rules(), Value(value));
// 22. Let pattern be po.[[<pr>]].
auto pattern = patterns.find_if([&](auto& p) { return p.plurality == plurality; });