From 00d8e3b02b63cfa06e53ddb60ba8dfdf26b3418b Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 20 Apr 2021 11:47:57 +0200 Subject: 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. --- Userland/Libraries/LibWeb/CodeGenerators/WrapperGenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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@&); -- cgit v1.2.3