1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 00:07:34 +00:00

LibJS: Visit internal values in PromiseValueList

This commit is contained in:
davidot 2022-02-04 16:22:47 +01:00 committed by Andreas Kling
parent 212c8dad5e
commit d46be7e7f2
2 changed files with 8 additions and 0 deletions

View file

@ -13,6 +13,13 @@
namespace JS {
void PromiseValueList::visit_edges(Visitor& visitor)
{
Cell::visit_edges(visitor);
for (auto& val : m_values)
visitor.visit(val);
}
PromiseResolvingElementFunction::PromiseResolvingElementFunction(size_t index, PromiseValueList& values, PromiseCapability capability, RemainingElements& remaining_elements, Object& prototype)
: NativeFunction(prototype)
, m_index(index)