1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:47:34 +00:00

LibJS: Add bytecode instructions for a bunch of unary operators

~, !, +, -, typeof, and void.
This commit is contained in:
Linus Groh 2021-06-07 19:53:47 +01:00
parent 54fc7079c6
commit fa9bad912e
5 changed files with 175 additions and 1 deletions

View file

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