1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:07:44 +00:00

LibJS: Make JS_OBJECT and JS_ENVIRONMENT forward to JS_CELL

This commit is contained in:
Andreas Kling 2022-08-28 22:12:42 +02:00
parent 6e973ce69b
commit 49fd92d92a
2 changed files with 2 additions and 11 deletions

View file

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

View file

@ -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 {