mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:38:11 +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
|
@ -144,9 +144,9 @@ JS::ThrowCompletionOr<bool> SheetGlobalObject::internal_set(const JS::PropertyKe
|
|||
return Base::internal_set(property_name, value, receiver);
|
||||
}
|
||||
|
||||
JS::ThrowCompletionOr<void> SheetGlobalObject::initialize(JS::Realm& realm)
|
||||
void SheetGlobalObject::initialize(JS::Realm& realm)
|
||||
{
|
||||
MUST_OR_THROW_OOM(Base::initialize(realm));
|
||||
Base::initialize(realm);
|
||||
|
||||
u8 attr = JS::Attribute::Configurable | JS::Attribute::Writable | JS::Attribute::Enumerable;
|
||||
define_native_function(realm, "get_real_cell_contents", get_real_cell_contents, 1, attr);
|
||||
|
@ -157,8 +157,6 @@ JS::ThrowCompletionOr<void> SheetGlobalObject::initialize(JS::Realm& realm)
|
|||
define_native_function(realm, "column_index", column_index, 1, attr);
|
||||
define_native_function(realm, "get_column_bound", get_column_bound, 1, attr);
|
||||
define_native_accessor(realm, "name", get_name, nullptr, attr);
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
void SheetGlobalObject::visit_edges(Visitor& visitor)
|
||||
|
@ -378,12 +376,10 @@ WorkbookObject::WorkbookObject(JS::Realm& realm, Workbook& workbook)
|
|||
{
|
||||
}
|
||||
|
||||
JS::ThrowCompletionOr<void> WorkbookObject::initialize(JS::Realm& realm)
|
||||
void WorkbookObject::initialize(JS::Realm& realm)
|
||||
{
|
||||
MUST_OR_THROW_OOM(Object::initialize(realm));
|
||||
Base::initialize(realm);
|
||||
define_native_function(realm, "sheet", sheet, 1, JS::default_attributes);
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
void WorkbookObject::visit_edges(Visitor& visitor)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue