mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:17:35 +00:00
WebContent: Use ErrorType::NotAnObjectOfType instead of NotA
This commit is contained in:
parent
c59b97043e
commit
1139aa45b6
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();
|
return JS::js_null();
|
||||||
|
|
||||||
if (!is<ConsoleGlobalObject>(this_object)) {
|
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 {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue