mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:47:34 +00:00
LibJS: Visit internal values in PromiseValueList
This commit is contained in:
parent
212c8dad5e
commit
d46be7e7f2
2 changed files with 8 additions and 0 deletions
|
@ -13,6 +13,13 @@
|
||||||
|
|
||||||
namespace JS {
|
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)
|
PromiseResolvingElementFunction::PromiseResolvingElementFunction(size_t index, PromiseValueList& values, PromiseCapability capability, RemainingElements& remaining_elements, Object& prototype)
|
||||||
: NativeFunction(prototype)
|
: NativeFunction(prototype)
|
||||||
, m_index(index)
|
, m_index(index)
|
||||||
|
|
|
@ -35,6 +35,7 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
virtual const char* class_name() const override { return "PromiseValueList"; }
|
virtual const char* class_name() const override { return "PromiseValueList"; }
|
||||||
|
virtual void visit_edges(Visitor&) override;
|
||||||
|
|
||||||
Vector<Value> m_values;
|
Vector<Value> m_values;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue