diff options
author | Linus Groh <mail@linusgroh.de> | 2022-08-20 08:52:42 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-08-23 13:58:30 +0100 |
commit | 694f66b5ca7e95e9ce24df327e80b0cffc5ff6c7 (patch) | |
tree | 5c0a4b7b6804affcaaccfefd2f7320a00509a422 /Userland/Libraries/LibJS/Runtime/Intl/AbstractOperations.cpp | |
parent | f9705eb2f489416a32d145f5363ab0783949add3 (diff) | |
download | serenity-694f66b5ca7e95e9ce24df327e80b0cffc5ff6c7.zip |
LibJS: Replace GlobalObject with VM in Temporal AOs [Part 2/19]
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Intl/AbstractOperations.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Intl/AbstractOperations.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Intl/AbstractOperations.cpp b/Userland/Libraries/LibJS/Runtime/Intl/AbstractOperations.cpp index d521709aa8..ce3157c770 100644 --- a/Userland/Libraries/LibJS/Runtime/Intl/AbstractOperations.cpp +++ b/Userland/Libraries/LibJS/Runtime/Intl/AbstractOperations.cpp @@ -569,13 +569,12 @@ Vector<String> best_fit_supported_locales(Vector<String> const& requested_locale ThrowCompletionOr<Array*> supported_locales(VM& vm, Vector<String> const& requested_locales, Value options) { auto& realm = *vm.current_realm(); - auto& global_object = realm.global_object(); // 1. Set options to ? CoerceOptionsToObject(options). auto* options_object = TRY(coerce_options_to_object(vm, options)); // 2. Let matcher be ? GetOption(options, "localeMatcher", "string", ยซ "lookup", "best fit" ยป, "best fit"). - auto matcher = TRY(get_option(global_object, *options_object, vm.names.localeMatcher, OptionType::String, { "lookup"sv, "best fit"sv }, "best fit"sv)); + auto matcher = TRY(get_option(vm, *options_object, vm.names.localeMatcher, OptionType::String, { "lookup"sv, "best fit"sv }, "best fit"sv)); Vector<String> supported_locales; |