mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:47:44 +00:00
LibJS: Make Value::as_cell() return a Cell&
This commit is contained in:
parent
0de954e86b
commit
47a4b2ba9f
3 changed files with 7 additions and 7 deletions
|
@ -92,7 +92,7 @@ void Heap::gather_roots(HashTable<Cell*>& roots)
|
|||
for (auto* list : m_marked_value_lists) {
|
||||
for (auto& value : list->values()) {
|
||||
if (value.is_cell())
|
||||
roots.set(value.as_cell());
|
||||
roots.set(&value.as_cell());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue