mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:37:37 +00:00
LibJS: Make Cell::initialize() return void
Stop worrying about tiny OOMs. Work towards #20405
This commit is contained in:
parent
fde26c53f0
commit
18c54d8d40
804 changed files with 1330 additions and 2171 deletions
|
@ -32,14 +32,14 @@ Intl::Intl(Realm& realm)
|
|||
{
|
||||
}
|
||||
|
||||
ThrowCompletionOr<void> Intl::initialize(Realm& realm)
|
||||
void Intl::initialize(Realm& realm)
|
||||
{
|
||||
MUST_OR_THROW_OOM(Object::initialize(realm));
|
||||
Base::initialize(realm);
|
||||
|
||||
auto& vm = this->vm();
|
||||
|
||||
// 8.1.1 Intl[ @@toStringTag ], https://tc39.es/ecma402/#sec-Intl-toStringTag
|
||||
define_direct_property(vm.well_known_symbol_to_string_tag(), MUST_OR_THROW_OOM(PrimitiveString::create(vm, "Intl"sv)), Attribute::Configurable);
|
||||
define_direct_property(vm.well_known_symbol_to_string_tag(), MUST(PrimitiveString::create(vm, "Intl"sv)), Attribute::Configurable);
|
||||
|
||||
u8 attr = Attribute::Writable | Attribute::Configurable;
|
||||
define_intrinsic_accessor(vm.names.Collator, attr, [](auto& realm) -> Value { return realm.intrinsics().intl_collator_constructor(); });
|
||||
|
@ -55,8 +55,6 @@ ThrowCompletionOr<void> Intl::initialize(Realm& realm)
|
|||
|
||||
define_native_function(realm, vm.names.getCanonicalLocales, get_canonical_locales, 1, attr);
|
||||
define_native_function(realm, vm.names.supportedValuesOf, supported_values_of, 1, attr);
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
// 8.3.1 Intl.getCanonicalLocales ( locales ), https://tc39.es/ecma402/#sec-intl.getcanonicallocales
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue