mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:57:35 +00:00
LibJS: Implement 'this' in the bytecode VM
ThisExpression now emits a "ResolveThisBinding" bytecode op, which simply loads the VM's current 'this' binding into the accumulator.
This commit is contained in:
parent
7c7bc4f44a
commit
3117182c2e
5 changed files with 29 additions and 0 deletions
|
@ -1214,6 +1214,7 @@ public:
|
|||
}
|
||||
virtual Value execute(Interpreter&, GlobalObject&) const override;
|
||||
virtual void dump(int indent) const override;
|
||||
virtual void generate_bytecode(Bytecode::Generator&) const override;
|
||||
};
|
||||
|
||||
class CallExpression : public Expression {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue