1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:07:35 +00:00

LibJS: Make AssignmentExpression assign through a Reference

Reference now has assign(Interpreter&, Value) which is used to write
transparently through a Reference into whatever location it refers to.
This commit is contained in:
Andreas Kling 2020-04-27 12:56:09 +02:00
parent 3c4a9e421f
commit ee0bf55127
5 changed files with 66 additions and 16 deletions

View file

@ -71,6 +71,8 @@ public:
return m_local_variable;
}
void assign(Interpreter&, Value);
private:
Value m_base { js_undefined() };
PropertyName m_name;