diff options
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Intl/Locale.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Intl/Locale.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Intl/Locale.cpp b/Userland/Libraries/LibJS/Runtime/Intl/Locale.cpp index 3907cbf695..5dfa3ee110 100644 --- a/Userland/Libraries/LibJS/Runtime/Intl/Locale.cpp +++ b/Userland/Libraries/LibJS/Runtime/Intl/Locale.cpp @@ -16,7 +16,7 @@ namespace JS::Intl { NonnullGCPtr<Locale> Locale::create(Realm& realm, ::Locale::LocaleID const& locale_id) { - return *realm.heap().allocate<Locale>(realm, locale_id, *realm.intrinsics().intl_locale_prototype()); + return realm.heap().allocate<Locale>(realm, locale_id, *realm.intrinsics().intl_locale_prototype()); } // 14 Locale Objects, https://tc39.es/ecma402/#locale-objects |