LibJS: Add conditional expression bytecode generation

Or, by its more common name, the ternary operator :^)
This commit is contained in:
Luke 2021-06-08 04:54:34 +01:00 committed by Linus Groh
commit de3ee701ce
Notes: sideshowbarker 2024-07-18 12:39:29 +09:00
2 changed files with 20 additions and 0 deletions

View file

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