diff options
author | Andreas Kling <kling@serenityos.org> | 2021-01-01 17:46:39 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-01 17:46:39 +0100 |
commit | f48751a7392ba312c1995432517e3d5456cb9a07 (patch) | |
tree | 043137539cfe242732dea039d4088ae37af047fa /Applications | |
parent | 8333055c3d9e0a05c058cbc4d00845711deb9593 (diff) | |
download | serenity-f48751a7392ba312c1995432517e3d5456cb9a07.zip |
LibJS: Remove hand-rolled Object is_foo() helpers in favor of RTTI
Diffstat (limited to 'Applications')
-rw-r--r-- | Applications/Spreadsheet/SpreadsheetModel.cpp | 2 |
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(); |