mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:17:45 +00:00
LibJS: Parse "this" as ThisExpression
This commit is contained in:
parent
110ca6b0b6
commit
f8f65053bd
6 changed files with 37 additions and 17 deletions
|
@ -502,6 +502,15 @@ private:
|
|||
FlyString m_string;
|
||||
};
|
||||
|
||||
class ThisExpression final : public Expression {
|
||||
public:
|
||||
virtual Value execute(Interpreter&) const override;
|
||||
virtual void dump(int indent) const override;
|
||||
|
||||
private:
|
||||
virtual const char* class_name() const override { return "ThisExpression"; }
|
||||
};
|
||||
|
||||
class CallExpression : public Expression {
|
||||
public:
|
||||
CallExpression(NonnullRefPtr<Expression> callee, NonnullRefPtrVector<Expression> arguments = {})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue