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(this_object)) { - vm.throw_exception(global_object, JS::ErrorType::NotA, "ConsoleGlobalObject"); + vm.throw_exception(global_object, JS::ErrorType::NotAnObjectOfType, "ConsoleGlobalObject"); return {}; }