From 4d8912a92b4378d34a06806b3126c8463bdbdcf5 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Tue, 12 Oct 2021 17:49:01 +0100 Subject: LibJS: Convert to_string() to ThrowCompletionOr Also update get_function_name() to use ThrowCompletionOr, but this is not a standard AO and should be refactored out of existence eventually. --- Userland/Applications/Spreadsheet/SpreadsheetModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Applications/Spreadsheet') diff --git a/Userland/Applications/Spreadsheet/SpreadsheetModel.cpp b/Userland/Applications/Spreadsheet/SpreadsheetModel.cpp index 49e7e5bf04..986b992148 100644 --- a/Userland/Applications/Spreadsheet/SpreadsheetModel.cpp +++ b/Userland/Applications/Spreadsheet/SpreadsheetModel.cpp @@ -40,7 +40,7 @@ GUI::Variant SheetModel::data(const GUI::ModelIndex& index, GUI::ModelRole role) return builder.to_string(); } } - auto error = value.to_string(cell->sheet().global_object()); + auto error = value.to_string_without_side_effects(); // This is annoying, but whatever. cell->sheet().interpreter().vm().clear_exception(); -- cgit v1.2.3