summaryrefslogtreecommitdiff
path: root/Userland/Applications/Spreadsheet
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-09-29 18:20:10 +0100
committerLinus Groh <mail@linusgroh.de>2021-09-29 23:49:53 +0100
commit6c2b974db28a0720a8788676f3a01f7cbc668afa (patch)
tree3e4389aeb1eb56124e37526b3580a7d8498381c2 /Userland/Applications/Spreadsheet
parentd9895ec12dbf51066fdc873920803121d7499844 (diff)
downloadserenity-6c2b974db28a0720a8788676f3a01f7cbc668afa.zip
LibJS: Convert internal_get() to ThrowCompletionOr
Diffstat (limited to 'Userland/Applications/Spreadsheet')
-rw-r--r--Userland/Applications/Spreadsheet/JSIntegration.cpp3
-rw-r--r--Userland/Applications/Spreadsheet/JSIntegration.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/Userland/Applications/Spreadsheet/JSIntegration.cpp b/Userland/Applications/Spreadsheet/JSIntegration.cpp
index a1dd89fa26..7feed88a3f 100644
--- a/Userland/Applications/Spreadsheet/JSIntegration.cpp
+++ b/Userland/Applications/Spreadsheet/JSIntegration.cpp
@@ -8,6 +8,7 @@
#include "Spreadsheet.h"
#include "Workbook.h"
#include <LibJS/Lexer.h>
+#include <LibJS/Runtime/Completion.h>
#include <LibJS/Runtime/Error.h>
#include <LibJS/Runtime/GlobalObject.h>
#include <LibJS/Runtime/Object.h>
@@ -101,7 +102,7 @@ SheetGlobalObject::~SheetGlobalObject()
{
}
-JS::Value SheetGlobalObject::internal_get(const JS::PropertyName& property_name, JS::Value receiver) const
+JS::ThrowCompletionOr<JS::Value> SheetGlobalObject::internal_get(const JS::PropertyName& property_name, JS::Value receiver) const
{
if (property_name.is_string()) {
if (property_name.as_string() == "value") {
diff --git a/Userland/Applications/Spreadsheet/JSIntegration.h b/Userland/Applications/Spreadsheet/JSIntegration.h
index 94c5e86049..7d45c46af5 100644
--- a/Userland/Applications/Spreadsheet/JSIntegration.h
+++ b/Userland/Applications/Spreadsheet/JSIntegration.h
@@ -8,6 +8,7 @@
#include "Forward.h"
#include <LibJS/Forward.h>
+#include <LibJS/Runtime/Completion.h>
#include <LibJS/Runtime/GlobalObject.h>
namespace Spreadsheet {
@@ -26,7 +27,7 @@ public:
virtual ~SheetGlobalObject() override;
- virtual JS::Value internal_get(JS::PropertyName const&, JS::Value receiver) const 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 void initialize_global_object() override;