diff options
Diffstat (limited to 'Userland/Applications/Spreadsheet/SpreadsheetModel.cpp')
-rw-r--r-- | Userland/Applications/Spreadsheet/SpreadsheetModel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/Spreadsheet/SpreadsheetModel.cpp b/Userland/Applications/Spreadsheet/SpreadsheetModel.cpp index 3adb40c9e6..c19de77117 100644 --- a/Userland/Applications/Spreadsheet/SpreadsheetModel.cpp +++ b/Userland/Applications/Spreadsheet/SpreadsheetModel.cpp @@ -31,7 +31,7 @@ GUI::Variant SheetModel::data(const GUI::ModelIndex& index, GUI::ModelRole role) auto& object = value.as_object(); if (is<JS::Error>(object)) { auto message = object.get_without_side_effects("message"); - auto error = message.to_string(vm); + auto error = message.to_deprecated_string(vm); if (error.is_throw_completion()) builder.append(message.to_string_without_side_effects()); else @@ -39,7 +39,7 @@ GUI::Variant SheetModel::data(const GUI::ModelIndex& index, GUI::ModelRole role) return builder.to_deprecated_string(); } } - auto error_message = value.to_string(vm); + auto error_message = value.to_deprecated_string(vm); if (error_message.is_throw_completion()) return to_deprecated_string_as_exception(*error_message.release_error().value()); |