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:
parent
3c4a9e421f
commit
ee0bf55127
5 changed files with 66 additions and 16 deletions
|
@ -71,6 +71,8 @@ public:
|
|||
return m_local_variable;
|
||||
}
|
||||
|
||||
void assign(Interpreter&, Value);
|
||||
|
||||
private:
|
||||
Value m_base { js_undefined() };
|
||||
PropertyName m_name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue