mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 22:15:07 +00:00
LibJS: Interpreter should make sure that the "this" stack gets marked
This commit is contained in:
parent
2c5b9fb8f9
commit
fbefb19e10
1 changed files with 5 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue