diff options
author | Timothy Flynn <trflynn89@pm.me> | 2021-09-11 16:44:28 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-12 00:16:39 +0200 |
commit | 1139aa45b604fd999aec0dc71fcc96f6dd29f4d0 (patch) | |
tree | 25a06e011a90275f3c40901cfe7914a3356275cc /Userland/Services/WebContent/ConsoleGlobalObject.cpp | |
parent | c59b97043eaf72cdb757262354ddb34b79b127d2 (diff) | |
download | serenity-1139aa45b604fd999aec0dc71fcc96f6dd29f4d0.zip |
WebContent: Use ErrorType::NotAnObjectOfType instead of NotA
Diffstat (limited to 'Userland/Services/WebContent/ConsoleGlobalObject.cpp')
-rw-r--r-- | Userland/Services/WebContent/ConsoleGlobalObject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Services/WebContent/ConsoleGlobalObject.cpp b/Userland/Services/WebContent/ConsoleGlobalObject.cpp index f1c0af4a34..2452185168 100644 --- a/Userland/Services/WebContent/ConsoleGlobalObject.cpp +++ b/Userland/Services/WebContent/ConsoleGlobalObject.cpp @@ -104,7 +104,7 @@ JS_DEFINE_NATIVE_GETTER(ConsoleGlobalObject::inspected_node_getter) return JS::js_null(); if (!is<ConsoleGlobalObject>(this_object)) { - vm.throw_exception<JS::TypeError>(global_object, JS::ErrorType::NotA, "ConsoleGlobalObject"); + vm.throw_exception<JS::TypeError>(global_object, JS::ErrorType::NotAnObjectOfType, "ConsoleGlobalObject"); return {}; } |