1
Fork 0
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:
Andreas Kling 2023-12-08 12:37:40 +01:00
parent 73ceb475b9
commit 373ec387c1
2 changed files with 5 additions and 0 deletions

View file

@ -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(); }
}