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
commit 49fd92d92a
Notes: sideshowbarker 2024-07-17 23:07:41 +09:00
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);