summaryrefslogtreecommitdiff
path: root/Applications/Spreadsheet/Spreadsheet.h
diff options
context:
space:
mode:
Diffstat (limited to 'Applications/Spreadsheet/Spreadsheet.h')
-rw-r--r--Applications/Spreadsheet/Spreadsheet.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Applications/Spreadsheet/Spreadsheet.h b/Applications/Spreadsheet/Spreadsheet.h
index 23fb45d4b1..ab9ecb62d8 100644
--- a/Applications/Spreadsheet/Spreadsheet.h
+++ b/Applications/Spreadsheet/Spreadsheet.h
@@ -118,7 +118,11 @@ public:
void update();
void update(Cell&);
- JS::Value evaluate(const StringView&, Cell* = nullptr);
+ struct ValueAndException {
+ JS::Value value;
+ JS::Exception* exception { nullptr };
+ };
+ ValueAndException evaluate(const StringView&, Cell* = nullptr);
JS::Interpreter& interpreter() const;
SheetGlobalObject& global_object() const { return *m_global_object; }