mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 18:50:50 +00:00
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: 1139aa45b6
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
Add a link
Reference in a new issue