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.
This commit is contained in:
Andreas Kling 2021-04-20 11:47:57 +02:00
parent 4d35ffdf3c
commit 00d8e3b02b
Notes: sideshowbarker 2024-07-18 19:21:25 +09:00

View file

@ -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@&);