diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-10-20 01:40:40 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-10-20 12:27:19 +0100 |
commit | 40eb3a39d41fe0c3242b586da9cf7e4ce2fcbf13 (patch) | |
tree | a2512e65916d2bebcb71c6dd07b11fb1929b17c8 /Userland/Applications/Spreadsheet | |
parent | ca27e5eff56ebdaf7f990296c6429f1b3afaa057 (diff) | |
download | serenity-40eb3a39d41fe0c3242b586da9cf7e4ce2fcbf13.zip |
LibJS: Rename define_native_function => define_old_native_function
This method will eventually be removed once all native functions are
converted to ThrowCompletionOr
Diffstat (limited to 'Userland/Applications/Spreadsheet')
-rw-r--r-- | Userland/Applications/Spreadsheet/JSIntegration.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Userland/Applications/Spreadsheet/JSIntegration.cpp b/Userland/Applications/Spreadsheet/JSIntegration.cpp index cf0a9f00f8..13982e5142 100644 --- a/Userland/Applications/Spreadsheet/JSIntegration.cpp +++ b/Userland/Applications/Spreadsheet/JSIntegration.cpp @@ -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) |