diff options
author | Linus Groh <mail@linusgroh.de> | 2021-09-29 18:31:37 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-09-29 23:49:53 +0100 |
commit | e5409c6eadf53a74b8960855991778372689bf3e (patch) | |
tree | 234a7a23cec0a8e8c2e36842e15821eb5e33e2e4 /Userland/Applications/Spreadsheet | |
parent | 6c2b974db28a0720a8788676f3a01f7cbc668afa (diff) | |
download | serenity-e5409c6eadf53a74b8960855991778372689bf3e.zip |
LibJS: Convert internal_set() to ThrowCompletionOr
Diffstat (limited to 'Userland/Applications/Spreadsheet')
-rw-r--r-- | Userland/Applications/Spreadsheet/JSIntegration.cpp | 2 | ||||
-rw-r--r-- | Userland/Applications/Spreadsheet/JSIntegration.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/Spreadsheet/JSIntegration.cpp b/Userland/Applications/Spreadsheet/JSIntegration.cpp index 7feed88a3f..54a822872d 100644 --- a/Userland/Applications/Spreadsheet/JSIntegration.cpp +++ b/Userland/Applications/Spreadsheet/JSIntegration.cpp @@ -121,7 +121,7 @@ JS::ThrowCompletionOr<JS::Value> SheetGlobalObject::internal_get(const JS::Prope return Base::internal_get(property_name, receiver); } -bool SheetGlobalObject::internal_set(const JS::PropertyName& property_name, JS::Value value, JS::Value receiver) +JS::ThrowCompletionOr<bool> SheetGlobalObject::internal_set(const JS::PropertyName& property_name, JS::Value value, JS::Value receiver) { if (property_name.is_string()) { if (auto pos = m_sheet.parse_cell_name(property_name.as_string()); pos.has_value()) { diff --git a/Userland/Applications/Spreadsheet/JSIntegration.h b/Userland/Applications/Spreadsheet/JSIntegration.h index 7d45c46af5..2f7d81b160 100644 --- a/Userland/Applications/Spreadsheet/JSIntegration.h +++ b/Userland/Applications/Spreadsheet/JSIntegration.h @@ -28,7 +28,7 @@ public: virtual ~SheetGlobalObject() override; virtual JS::ThrowCompletionOr<JS::Value> internal_get(JS::PropertyName const&, JS::Value receiver) const override; - virtual bool internal_set(JS::PropertyName const&, JS::Value value, JS::Value receiver) override; + 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); |