summaryrefslogtreecommitdiff
path: root/Userland/Applications/Spreadsheet/Spreadsheet.h
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2021-11-21 05:04:55 +0330
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2021-12-12 14:49:49 +0330
commit235eb0b1adba5920ce914e5a908b5940c2ddf9f8 (patch)
tree5602ab457d7e5db707549f911dcb6c430f5a153f /Userland/Applications/Spreadsheet/Spreadsheet.h
parent82dde46a306b4606b1f0deb084d299ebfbf712a1 (diff)
downloadserenity-235eb0b1adba5920ce914e5a908b5940c2ddf9f8.zip
Spreadsheet: Replace hacky JS VM configuration with a more correct one
Now we give each sheet its own interpreter and realm, and only make them share the VM. This is to prepare for the next commit, which will be refactoring a bunch of things to propagate exceptions via ThrowCompletionOr<T>.
Diffstat (limited to 'Userland/Applications/Spreadsheet/Spreadsheet.h')
-rw-r--r--Userland/Applications/Spreadsheet/Spreadsheet.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Applications/Spreadsheet/Spreadsheet.h b/Userland/Applications/Spreadsheet/Spreadsheet.h
index 69248dff8b..213131185d 100644
--- a/Userland/Applications/Spreadsheet/Spreadsheet.h
+++ b/Userland/Applications/Spreadsheet/Spreadsheet.h
@@ -147,6 +147,8 @@ private:
Workbook& m_workbook;
mutable SheetGlobalObject* m_global_object;
+ NonnullOwnPtr<JS::Interpreter> m_interpreter;
+
Cell* m_current_cell_being_evaluated { nullptr };
HashTable<Cell*> m_visited_cells_in_update;