1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:47:35 +00:00

LibJS: Implement bytecode generation for switch

This commit is contained in:
Marcin Gasperowicz 2021-06-11 00:36:16 +02:00 committed by Andreas Kling
parent fbb54efd28
commit a64089092f
2 changed files with 59 additions and 0 deletions

View file

@ -1309,6 +1309,7 @@ public:
virtual void dump(int indent) const override;
virtual Value execute(Interpreter&, GlobalObject&) const override;
virtual void generate_bytecode(Bytecode::Generator&) const override;
private:
NonnullRefPtr<Expression> m_discriminant;