mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 11:48:32 +00:00
LibJS: Interpreter should make sure that the "this" stack gets marked
This commit is contained in:
@@ -144,6 +144,11 @@ void Interpreter::collect_roots(Badge<Heap>, HashTable<Cell*>& roots)
|
||||
roots.set(it.value.value.as_cell());
|
||||
}
|
||||
}
|
||||
|
||||
for (auto& this_value : m_this_stack) {
|
||||
if (this_value.is_cell())
|
||||
roots.set(this_value.as_cell());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user