mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 08:39:22 +00:00
LibJS: Make sure we mark everything reachable from the scope stack
This ensures that local variables survive GC.
This commit is contained in:
parent
26165cd92a
commit
363c40e3f3
Notes:
sideshowbarker
2024-07-19 08:47:57 +09:00
Author: https://github.com/awesomekling
Commit: 363c40e3f3
3 changed files with 17 additions and 1 deletions
|
@ -56,6 +56,8 @@ public:
|
|||
void set_variable(String name, Value);
|
||||
void declare_variable(String name);
|
||||
|
||||
void collect_roots(Badge<Heap>, HashTable<Cell*>&);
|
||||
|
||||
private:
|
||||
void enter_scope(const ScopeNode&);
|
||||
void exit_scope(const ScopeNode&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue