summaryrefslogtreecommitdiff
path: root/Applications
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-01-01 17:46:39 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-01 17:46:39 +0100
commitf48751a7392ba312c1995432517e3d5456cb9a07 (patch)
tree043137539cfe242732dea039d4088ae37af047fa /Applications
parent8333055c3d9e0a05c058cbc4d00845711deb9593 (diff)
downloadserenity-f48751a7392ba312c1995432517e3d5456cb9a07.zip
LibJS: Remove hand-rolled Object is_foo() helpers in favor of RTTI
Diffstat (limited to 'Applications')
-rw-r--r--Applications/Spreadsheet/SpreadsheetModel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/Spreadsheet/SpreadsheetModel.cpp b/Applications/Spreadsheet/SpreadsheetModel.cpp
index 84b34a5e99..70193e4b63 100644
--- a/Applications/Spreadsheet/SpreadsheetModel.cpp
+++ b/Applications/Spreadsheet/SpreadsheetModel.cpp
@@ -54,7 +54,7 @@ GUI::Variant SheetModel::data(const GUI::ModelIndex& index, GUI::ModelRole role)
auto value = exception->value();
if (value.is_object()) {
auto& object = value.as_object();
- if (object.is_error()) {
+ if (is<JS::Error>(object)) {
auto error = object.get("message").to_string_without_side_effects();
builder.append(error);
return builder.to_string();