mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 10:37:17 +02:00
LibJS: Visit GeneratorObject's previous value if it's any kind of Cell
Not just if it's an Object (which is one kind of Cell).
This commit is contained in:
committed by
Andreas Kling
parent
b9eb8d00ca
commit
59982ef582
Notes:
sideshowbarker
2024-07-18 04:16:00 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/59982ef5824 Pull-request: https://github.com/SerenityOS/serenity/pull/9969 Reviewed-by: https://github.com/awesomekling ✅ Reviewed-by: https://github.com/linusg
@@ -46,8 +46,7 @@ void GeneratorObject::visit_edges(Cell::Visitor& visitor)
|
||||
Base::visit_edges(visitor);
|
||||
visitor.visit(m_environment);
|
||||
visitor.visit(m_generating_function);
|
||||
if (m_previous_value.is_object())
|
||||
visitor.visit(&m_previous_value.as_object());
|
||||
visitor.visit(m_previous_value);
|
||||
}
|
||||
|
||||
Value GeneratorObject::next_impl(VM& vm, GlobalObject& global_object, Optional<Value> value_to_throw)
|
||||
|
||||
Reference in New Issue
Block a user