summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Runtime/ErrorConstructor.h
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibJS/Runtime/ErrorConstructor.h')
-rw-r--r--Libraries/LibJS/Runtime/ErrorConstructor.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/Libraries/LibJS/Runtime/ErrorConstructor.h b/Libraries/LibJS/Runtime/ErrorConstructor.h
index 39c0cdf075..2e6c4ac337 100644
--- a/Libraries/LibJS/Runtime/ErrorConstructor.h
+++ b/Libraries/LibJS/Runtime/ErrorConstructor.h
@@ -44,22 +44,22 @@ private:
virtual const char* class_name() const override { return "ErrorConstructor"; }
};
-#define DECLARE_ERROR_SUBCLASS_CONSTRUCTOR(TitleCase, snake_case) \
- class TitleCase##Constructor final : public NativeFunction { \
- public: \
- TitleCase##Constructor(); \
- virtual ~TitleCase##Constructor() override; \
- virtual Value call(Interpreter&) override; \
- virtual Value construct(Interpreter&) override; \
- \
- private: \
- virtual bool has_constructor() const override { return true; } \
- virtual const char* class_name() const override { return #TitleCase "Constructor"; } \
+#define DECLARE_ERROR_SUBCLASS_CONSTRUCTOR(ClassName, snake_name, PrototypeName, ConstructorName) \
+ class ConstructorName final : public NativeFunction { \
+ public: \
+ ConstructorName(); \
+ virtual ~ConstructorName() override; \
+ virtual Value call(Interpreter&) override; \
+ virtual Value construct(Interpreter&) override; \
+ \
+ private: \
+ virtual bool has_constructor() const override { return true; } \
+ virtual const char* class_name() const override { return #ClassName "Constructor"; } \
};
-#define __JS_ENUMERATE_ERROR_SUBCLASS(TitleCase, snake_case) \
- DECLARE_ERROR_SUBCLASS_CONSTRUCTOR(TitleCase, snake_case)
+#define __JS_ENUMERATE(ClassName, snake_name, PrototypeName, ConstructorName) \
+ DECLARE_ERROR_SUBCLASS_CONSTRUCTOR(ClassName, snake_name, PrototypeName, ConstructorName)
JS_ENUMERATE_ERROR_SUBCLASSES
-#undef __JS_ENUMERATE_ERROR_SUBCLASS
+#undef __JS_ENUMERATE
}