Преглед на файлове

LibWeb: Don't include "Wrapper" suffix in JS wrapper class_name()

The "Wrapper" suffix is not useful information to someone using the
JS console, so let's just drop it from the string returned when calling
class_name() on a JS binding wrapper.
Andreas Kling преди 4 години
родител
ревизия
00d8e3b02b
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      Userland/Libraries/LibWeb/CodeGenerators/WrapperGenerator.cpp

+ 1 - 1
Userland/Libraries/LibWeb/CodeGenerators/WrapperGenerator.cpp

@@ -776,7 +776,7 @@ static void generate_header(const IDL::Interface& interface)
 namespace Web::Bindings {
 namespace Web::Bindings {
 
 
 class @wrapper_class@ : public @wrapper_base_class@ {
 class @wrapper_class@ : public @wrapper_base_class@ {
-    JS_OBJECT(@wrapper_class@, @wrapper_base_class@);
+    JS_OBJECT(@name@, @wrapper_base_class@);
 public:
 public:
     static @wrapper_class@* create(JS::GlobalObject&, @fully_qualified_name@&);
     static @wrapper_class@* create(JS::GlobalObject&, @fully_qualified_name@&);