1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:17:45 +00:00

LibJS: Implement ClassExpression::generate_bytecode()

...and use that in ClassDeclaration::generate_bytecode().
This commit is contained in:
Ali Mohammad Pur 2022-02-12 19:55:40 +03:30 committed by Linus Groh
parent 75aa900b83
commit c7e6b65fd2
2 changed files with 11 additions and 3 deletions

View file

@ -1373,6 +1373,7 @@ public:
virtual Completion execute(Interpreter&, GlobalObject&) const override;
virtual void dump(int indent) const override;
virtual Bytecode::CodeGenerationErrorOr<void> generate_bytecode(Bytecode::Generator&) const override;
bool has_name() const { return !m_name.is_empty(); }