diff options
author | Andreas Kling <kling@serenityos.org> | 2021-01-01 17:00:20 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-01 17:00:20 +0100 |
commit | 8333055c3d9e0a05c058cbc4d00845711deb9593 (patch) | |
tree | 6dc644a5fed3dc96a9968f9d79a357312288675c /Applications/Spreadsheet | |
parent | fc86717f4371e02127709ae0f5db0ef9dc527809 (diff) | |
download | serenity-8333055c3d9e0a05c058cbc4d00845711deb9593.zip |
LibJS: Use RTTI for inheritance checks
This replaces the hand-rolled string-based inheritance check tech.
Diffstat (limited to 'Applications/Spreadsheet')
-rw-r--r-- | Applications/Spreadsheet/JSIntegration.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/Spreadsheet/JSIntegration.cpp b/Applications/Spreadsheet/JSIntegration.cpp index a10d8a884d..12a249593e 100644 --- a/Applications/Spreadsheet/JSIntegration.cpp +++ b/Applications/Spreadsheet/JSIntegration.cpp @@ -419,7 +419,7 @@ JS_DEFINE_NATIVE_FUNCTION(WorkbookObject::sheet) if (!this_object) return {}; - if (!this_object->inherits("WorkbookObject")) { + if (!is<WorkbookObject>(this_object)) { vm.throw_exception<JS::TypeError>(global_object, JS::ErrorType::NotA, "WorkbookObject"); return {}; } |