summaryrefslogtreecommitdiff
path: root/Tests
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2021-09-11 15:28:51 -0400
committerAndreas Kling <kling@serenityos.org>2021-09-12 00:16:39 +0200
commitc59b97043eaf72cdb757262354ddb34b79b127d2 (patch)
tree7707133c78319d05e37b596fa539d22ae4f9a7cf /Tests
parentfd8ec1fffa587913e3079a2964c1d4a5076b2158 (diff)
downloadserenity-c59b97043eaf72cdb757262354ddb34b79b127d2.zip
LibWeb: Use ErrorType::NotAnObjectOfType instead of NotA
Diffstat (limited to 'Tests')
-rw-r--r--Tests/LibWeb/test-web.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/LibWeb/test-web.cpp b/Tests/LibWeb/test-web.cpp
index 958c66dceb..bee86f911d 100644
--- a/Tests/LibWeb/test-web.cpp
+++ b/Tests/LibWeb/test-web.cpp
@@ -61,7 +61,7 @@ TESTJS_GLOBAL_FUNCTION(after_initial_page_load, afterInitialPageLoad)
auto function = vm.argument(0);
if (!function.is_function()) {
dbgln("afterInitialPageLoad argument is not a function");
- vm.throw_exception<JS::TypeError>(global_object, JS::ErrorType::NotA, "Function");
+ vm.throw_exception<JS::TypeError>(global_object, JS::ErrorType::NotAnObjectOfType, "Function");
return {};
}
@@ -76,7 +76,7 @@ TESTJS_GLOBAL_FUNCTION(before_initial_page_load, beforeInitialPageLoad)
auto function = vm.argument(0);
if (!function.is_function()) {
dbgln("beforeInitialPageLoad argument is not a function");
- vm.throw_exception<JS::TypeError>(global_object, JS::ErrorType::NotA, "Function");
+ vm.throw_exception<JS::TypeError>(global_object, JS::ErrorType::NotAnObjectOfType, "Function");
return {};
}