diff --git a/Userland/Libraries/LibJS/Runtime/Environment.h b/Userland/Libraries/LibJS/Runtime/Environment.h index f25753aefa..9073eeab05 100644 --- a/Userland/Libraries/LibJS/Runtime/Environment.h +++ b/Userland/Libraries/LibJS/Runtime/Environment.h @@ -17,10 +17,7 @@ struct Variable { DeclarationKind declaration_kind; }; -#define JS_ENVIRONMENT(class_, base_class) \ -public: \ - using Base = base_class; \ - virtual StringView class_name() const override { return #class_##sv; } +#define JS_ENVIRONMENT(class_, base_class) JS_CELL(class_, base_class) class Environment : public Cell { JS_CELL(Environment, Cell); diff --git a/Userland/Libraries/LibJS/Runtime/Object.h b/Userland/Libraries/LibJS/Runtime/Object.h index 13f6bd9a70..a2a1ebec7a 100644 --- a/Userland/Libraries/LibJS/Runtime/Object.h +++ b/Userland/Libraries/LibJS/Runtime/Object.h @@ -25,13 +25,7 @@ namespace JS { -#define JS_OBJECT(class_, base_class) \ -public: \ - using Base = base_class; \ - virtual StringView class_name() const override \ - { \ - return #class_##sv; \ - } +#define JS_OBJECT(class_, base_class) JS_CELL(class_, base_class) struct PrivateElement { enum class Kind {