diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-10-19 20:18:01 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-10-20 12:27:19 +0100 |
commit | 20163c058485dc524402c46f21bbe65a860bf9c5 (patch) | |
tree | 35e6942b65f8138ee073efcec6dae987d9ab0377 /Userland/Applications/Spreadsheet/JSIntegration.h | |
parent | 3355b52cca1e1a8478ea5dbbd193120af4c83ca6 (diff) | |
download | serenity-20163c058485dc524402c46f21bbe65a860bf9c5.zip |
LibJS: Add ThrowCompletionOr versions of the JS native function macros
The old versions were renamed to JS_DECLARE_OLD_NATIVE_FUNCTION and
JS_DEFINE_OLD_NATIVE_FUNCTION, and will be eventually removed once all
native functions were converted to the new format.
Diffstat (limited to 'Userland/Applications/Spreadsheet/JSIntegration.h')
-rw-r--r-- | Userland/Applications/Spreadsheet/JSIntegration.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Userland/Applications/Spreadsheet/JSIntegration.h b/Userland/Applications/Spreadsheet/JSIntegration.h index 8bd1e09a40..264fb7af01 100644 --- a/Userland/Applications/Spreadsheet/JSIntegration.h +++ b/Userland/Applications/Spreadsheet/JSIntegration.h @@ -32,12 +32,12 @@ public: virtual JS::ThrowCompletionOr<bool> internal_set(JS::PropertyName const&, JS::Value value, JS::Value receiver) override; virtual void initialize_global_object() override; - JS_DECLARE_NATIVE_FUNCTION(get_real_cell_contents); - JS_DECLARE_NATIVE_FUNCTION(set_real_cell_contents); - JS_DECLARE_NATIVE_FUNCTION(parse_cell_name); - JS_DECLARE_NATIVE_FUNCTION(current_cell_position); - JS_DECLARE_NATIVE_FUNCTION(column_index); - JS_DECLARE_NATIVE_FUNCTION(column_arithmetic); + JS_DECLARE_OLD_NATIVE_FUNCTION(get_real_cell_contents); + JS_DECLARE_OLD_NATIVE_FUNCTION(set_real_cell_contents); + JS_DECLARE_OLD_NATIVE_FUNCTION(parse_cell_name); + JS_DECLARE_OLD_NATIVE_FUNCTION(current_cell_position); + JS_DECLARE_OLD_NATIVE_FUNCTION(column_index); + JS_DECLARE_OLD_NATIVE_FUNCTION(column_arithmetic); private: virtual void visit_edges(Visitor&) override; @@ -54,7 +54,7 @@ public: virtual void initialize(JS::GlobalObject&) override; - JS_DECLARE_NATIVE_FUNCTION(sheet); + JS_DECLARE_OLD_NATIVE_FUNCTION(sheet); private: virtual void visit_edges(Visitor&) override; |