diff --git a/Libraries/LibJS/Interpreter.cpp b/Libraries/LibJS/Interpreter.cpp index 3983998c55..6c3ab98dfe 100644 --- a/Libraries/LibJS/Interpreter.cpp +++ b/Libraries/LibJS/Interpreter.cpp @@ -122,8 +122,8 @@ void Interpreter::collect_roots(Badge, HashTable& roots) for (auto& scope : m_scope_stack) { for (auto& it : scope.variables) { - if (it.value.is_object()) - roots.set(it.value.as_object()); + if (it.value.is_cell()) + roots.set(it.value.as_cell()); } } }