mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 07:07:23 +00:00
LibJS: Parse "this" as ThisExpression
This commit is contained in:
committed by
Andreas Kling
parent
110ca6b0b6
commit
f8f65053bd
@@ -662,6 +662,16 @@ void Identifier::dump(int indent) const
|
||||
printf("Identifier \"%s\"\n", m_string.characters());
|
||||
}
|
||||
|
||||
Value ThisExpression::execute(Interpreter& interpreter) const
|
||||
{
|
||||
return interpreter.this_value();
|
||||
}
|
||||
|
||||
void ThisExpression::dump(int indent) const
|
||||
{
|
||||
ASTNode::dump(indent);
|
||||
}
|
||||
|
||||
Value AssignmentExpression::execute(Interpreter& interpreter) const
|
||||
{
|
||||
auto rhs_result = m_rhs->execute(interpreter);
|
||||
|
||||
Reference in New Issue
Block a user