mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 11:07:35 +00:00
LibJS: Add conditional expression bytecode generation
Or, by its more common name, the ternary operator :^)
This commit is contained in:
parent
6da587b59b
commit
de3ee701ce
2 changed files with 20 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue