mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00: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:
parent
b9eb8d00ca
commit
59982ef582
Notes:
sideshowbarker
2024-07-18 04:16:00 +09:00
Author: https://github.com/IdanHo
Commit: 59982ef582
Pull-request: https://github.com/SerenityOS/serenity/pull/9969
Reviewed-by: https://github.com/awesomekling ✅
Reviewed-by: https://github.com/linusg
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue