WebContent: Use ErrorType::NotAnObjectOfType instead of NotA
This commit is contained in:
parent
c59b97043e
commit
1139aa45b6
Notes:
sideshowbarker
2024-07-18 04:14:32 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/1139aa45b60 Pull-request: https://github.com/SerenityOS/serenity/pull/9975 Reviewed-by: https://github.com/linusg ✅
1 changed files with 1 additions and 1 deletions
|
@ -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 {};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue