mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +00:00
LibJS: Fix assignment of const variable on declaration
We were previously assuming that we were reassigning a variable even when we were not, oops, my bad. :/
This commit is contained in:
committed by
Andreas Kling
parent
2a32330257
commit
7aad10d984
@@ -71,7 +71,7 @@ public:
|
||||
void do_return();
|
||||
|
||||
Value get_variable(const String& name);
|
||||
void set_variable(String name, Value);
|
||||
void set_variable(String name, Value, bool first_assignment = false);
|
||||
void declare_variable(String name, DeclarationType);
|
||||
|
||||
void gather_roots(Badge<Heap>, HashTable<Cell*>&);
|
||||
|
||||
Reference in New Issue
Block a user