From e5409c6eadf53a74b8960855991778372689bf3e Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Wed, 29 Sep 2021 18:31:37 +0100 Subject: LibJS: Convert internal_set() to ThrowCompletionOr --- Userland/Applications/Spreadsheet/JSIntegration.cpp | 2 +- Userland/Applications/Spreadsheet/JSIntegration.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Userland/Applications/Spreadsheet') 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 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 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 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 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); -- cgit v1.2.3