mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:48:12 +00:00
LibJS: Rename define_native_function => define_old_native_function
This method will eventually be removed once all native functions are converted to ThrowCompletionOr
This commit is contained in:
parent
ca27e5eff5
commit
40eb3a39d4
95 changed files with 755 additions and 755 deletions
|
@ -151,12 +151,12 @@ void SheetGlobalObject::initialize_global_object()
|
|||
{
|
||||
Base::initialize_global_object();
|
||||
u8 attr = JS::Attribute::Configurable | JS::Attribute::Writable | JS::Attribute::Enumerable;
|
||||
define_native_function("get_real_cell_contents", get_real_cell_contents, 1, attr);
|
||||
define_native_function("set_real_cell_contents", set_real_cell_contents, 2, attr);
|
||||
define_native_function("parse_cell_name", parse_cell_name, 1, attr);
|
||||
define_native_function("current_cell_position", current_cell_position, 0, attr);
|
||||
define_native_function("column_arithmetic", column_arithmetic, 2, attr);
|
||||
define_native_function("column_index", column_index, 1, attr);
|
||||
define_old_native_function("get_real_cell_contents", get_real_cell_contents, 1, attr);
|
||||
define_old_native_function("set_real_cell_contents", set_real_cell_contents, 2, attr);
|
||||
define_old_native_function("parse_cell_name", parse_cell_name, 1, attr);
|
||||
define_old_native_function("current_cell_position", current_cell_position, 0, attr);
|
||||
define_old_native_function("column_arithmetic", column_arithmetic, 2, attr);
|
||||
define_old_native_function("column_index", column_index, 1, attr);
|
||||
}
|
||||
|
||||
void SheetGlobalObject::visit_edges(Visitor& visitor)
|
||||
|
@ -387,7 +387,7 @@ WorkbookObject::~WorkbookObject()
|
|||
void WorkbookObject::initialize(JS::GlobalObject& global_object)
|
||||
{
|
||||
Object::initialize(global_object);
|
||||
define_native_function("sheet", sheet, 1, JS::default_attributes);
|
||||
define_old_native_function("sheet", sheet, 1, JS::default_attributes);
|
||||
}
|
||||
|
||||
void WorkbookObject::visit_edges(Visitor& visitor)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue