mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:37:35 +00:00
LibJS: Add fast_is<ArrayIterator>()
This commit is contained in:
parent
73ceb475b9
commit
373ec387c1
2 changed files with 5 additions and 0 deletions
|
@ -28,6 +28,7 @@ private:
|
|||
|
||||
ArrayIterator(Value array, Object::PropertyKind iteration_kind, Object& prototype);
|
||||
|
||||
virtual bool is_array_iterator() const override { return true; }
|
||||
virtual void visit_edges(Cell::Visitor&) override;
|
||||
|
||||
Value m_array;
|
||||
|
@ -35,4 +36,7 @@ private:
|
|||
size_t m_index { 0 };
|
||||
};
|
||||
|
||||
template<>
|
||||
inline bool Object::fast_is<ArrayIterator>() const { return is_array_iterator(); }
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue