summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-04-20 11:47:57 +0200
committerAndreas Kling <kling@serenityos.org>2021-04-20 12:05:56 +0200
commit00d8e3b02b63cfa06e53ddb60ba8dfdf26b3418b (patch)
tree5a01d6830aa33e5e7ff831d36b4f87553d9ef5dc
parent4d35ffdf3c7edb834c5402627df199a8e4439098 (diff)
downloadserenity-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.cpp2
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@&);