mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibJS: Make Cell::initialize() return void
Stop worrying about tiny OOMs. Work towards #20405
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 05:09:48 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/18c54d8d40 Pull-request: https://github.com/SerenityOS/serenity/pull/20420
@@ -222,17 +222,15 @@ LocaleConstructor::LocaleConstructor(Realm& realm)
|
||||
{
|
||||
}
|
||||
|
||||
ThrowCompletionOr<void> LocaleConstructor::initialize(Realm& realm)
|
||||
void LocaleConstructor::initialize(Realm& realm)
|
||||
{
|
||||
MUST_OR_THROW_OOM(NativeFunction::initialize(realm));
|
||||
Base::initialize(realm);
|
||||
|
||||
auto& vm = this->vm();
|
||||
|
||||
// 14.2.1 Intl.Locale.prototype, https://tc39.es/ecma402/#sec-Intl.Locale.prototype
|
||||
define_direct_property(vm.names.prototype, realm.intrinsics().intl_locale_prototype(), 0);
|
||||
define_direct_property(vm.names.length, Value(1), Attribute::Configurable);
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
// 14.1.1 Intl.Locale ( tag [ , options ] ), https://tc39.es/ecma402/#sec-Intl.Locale
|
||||
|
||||
Reference in New Issue
Block a user