Jelajahi Sumber

WebContent: Use ErrorType::NotAnObjectOfType instead of NotA

Timothy Flynn 3 tahun lalu
induk
melakukan
1139aa45b6
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      Userland/Services/WebContent/ConsoleGlobalObject.cpp

+ 1 - 1
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 {};
     }