diff options
author | Timothy Flynn <trflynn89@pm.me> | 2021-09-11 16:45:10 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-12 00:16:39 +0200 |
commit | 9def17d4cb66bc6e091e430cf711500ee430eba7 (patch) | |
tree | c7fee89cba73d9e65139649828d9edea28a4c561 /Userland | |
parent | 1139aa45b604fd999aec0dc71fcc96f6dd29f4d0 (diff) | |
download | serenity-9def17d4cb66bc6e091e430cf711500ee430eba7.zip |
Spreadsheet: Use ErrorType::NotAnObjectOfType instead of NotA
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Applications/Spreadsheet/JSIntegration.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Userland/Applications/Spreadsheet/JSIntegration.cpp b/Userland/Applications/Spreadsheet/JSIntegration.cpp index d2d0cf63be..a1dd89fa26 100644 --- a/Userland/Applications/Spreadsheet/JSIntegration.cpp +++ b/Userland/Applications/Spreadsheet/JSIntegration.cpp @@ -165,7 +165,7 @@ JS_DEFINE_NATIVE_FUNCTION(SheetGlobalObject::get_real_cell_contents) return JS::js_null(); if (!is<SheetGlobalObject>(this_object)) { - vm.throw_exception<JS::TypeError>(global_object, JS::ErrorType::NotA, "SheetGlobalObject"); + vm.throw_exception<JS::TypeError>(global_object, JS::ErrorType::NotAnObjectOfType, "SheetGlobalObject"); return {}; } @@ -204,7 +204,7 @@ JS_DEFINE_NATIVE_FUNCTION(SheetGlobalObject::set_real_cell_contents) return JS::js_null(); if (!is<SheetGlobalObject>(this_object)) { - vm.throw_exception<JS::TypeError>(global_object, JS::ErrorType::NotA, "SheetGlobalObject"); + vm.throw_exception<JS::TypeError>(global_object, JS::ErrorType::NotAnObjectOfType, "SheetGlobalObject"); return {}; } @@ -245,7 +245,7 @@ JS_DEFINE_NATIVE_FUNCTION(SheetGlobalObject::parse_cell_name) return JS::js_null(); if (!is<SheetGlobalObject>(this_object)) { - vm.throw_exception<JS::TypeError>(global_object, JS::ErrorType::NotA, "SheetGlobalObject"); + vm.throw_exception<JS::TypeError>(global_object, JS::ErrorType::NotAnObjectOfType, "SheetGlobalObject"); return {}; } @@ -283,7 +283,7 @@ JS_DEFINE_NATIVE_FUNCTION(SheetGlobalObject::current_cell_position) return JS::js_null(); if (!is<SheetGlobalObject>(this_object)) { - vm.throw_exception<JS::TypeError>(global_object, JS::ErrorType::NotA, "SheetGlobalObject"); + vm.throw_exception<JS::TypeError>(global_object, JS::ErrorType::NotAnObjectOfType, "SheetGlobalObject"); return {}; } @@ -310,7 +310,7 @@ JS_DEFINE_NATIVE_FUNCTION(SheetGlobalObject::column_index) auto column_name = vm.argument(0); if (!column_name.is_string()) { - vm.throw_exception<JS::TypeError>(global_object, JS::ErrorType::NotA, "String"); + vm.throw_exception<JS::TypeError>(global_object, JS::ErrorType::NotAnObjectOfType, "String"); return {}; } @@ -321,7 +321,7 @@ JS_DEFINE_NATIVE_FUNCTION(SheetGlobalObject::column_index) return JS::js_null(); if (!is<SheetGlobalObject>(this_object)) { - vm.throw_exception<JS::TypeError>(global_object, JS::ErrorType::NotA, "SheetGlobalObject"); + vm.throw_exception<JS::TypeError>(global_object, JS::ErrorType::NotAnObjectOfType, "SheetGlobalObject"); return {}; } @@ -345,7 +345,7 @@ JS_DEFINE_NATIVE_FUNCTION(SheetGlobalObject::column_arithmetic) auto column_name = vm.argument(0); if (!column_name.is_string()) { - vm.throw_exception<JS::TypeError>(global_object, JS::ErrorType::NotA, "String"); + vm.throw_exception<JS::TypeError>(global_object, JS::ErrorType::NotAnObjectOfType, "String"); return {}; } @@ -362,7 +362,7 @@ JS_DEFINE_NATIVE_FUNCTION(SheetGlobalObject::column_arithmetic) return JS::js_null(); if (!is<SheetGlobalObject>(this_object)) { - vm.throw_exception<JS::TypeError>(global_object, JS::ErrorType::NotA, "SheetGlobalObject"); + vm.throw_exception<JS::TypeError>(global_object, JS::ErrorType::NotAnObjectOfType, "SheetGlobalObject"); return {}; } @@ -417,7 +417,7 @@ JS_DEFINE_NATIVE_FUNCTION(WorkbookObject::sheet) return {}; if (!is<WorkbookObject>(this_object)) { - vm.throw_exception<JS::TypeError>(global_object, JS::ErrorType::NotA, "WorkbookObject"); + vm.throw_exception<JS::TypeError>(global_object, JS::ErrorType::NotAnObjectOfType, "WorkbookObject"); return {}; } |