diff options
author | Andreas Kling <kling@serenityos.org> | 2021-04-20 11:47:57 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-20 12:05:56 +0200 |
commit | 00d8e3b02b63cfa06e53ddb60ba8dfdf26b3418b (patch) | |
tree | 5a01d6830aa33e5e7ff831d36b4f87553d9ef5dc | |
parent | 4d35ffdf3c7edb834c5402627df199a8e4439098 (diff) | |
download | serenity-00d8e3b02b63cfa06e53ddb60ba8dfdf26b3418b.zip |
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.
-rw-r--r-- | Userland/Libraries/LibWeb/CodeGenerators/WrapperGenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/CodeGenerators/WrapperGenerator.cpp b/Userland/Libraries/LibWeb/CodeGenerators/WrapperGenerator.cpp index 7fde8af135..9a4311ad3b 100644 --- a/Userland/Libraries/LibWeb/CodeGenerators/WrapperGenerator.cpp +++ b/Userland/Libraries/LibWeb/CodeGenerators/WrapperGenerator.cpp @@ -776,7 +776,7 @@ static void generate_header(const IDL::Interface& interface) namespace Web::Bindings { class @wrapper_class@ : public @wrapper_base_class@ { - JS_OBJECT(@wrapper_class@, @wrapper_base_class@); + JS_OBJECT(@name@, @wrapper_base_class@); public: static @wrapper_class@* create(JS::GlobalObject&, @fully_qualified_name@&); |