mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:47:45 +00:00
LibJS: Rename JS::Iterator to JS::IteratorRecord
This is in preparation for an upcoming implementation of the Iterator Helpers proposal. That proposal will require a JS::Object type named "Iterator", so this rename is to avoid conflicts.
This commit is contained in:
parent
cd2a6767bc
commit
4977000fa0
12 changed files with 36 additions and 36 deletions
|
@ -17,20 +17,20 @@ class AsyncFromSyncIterator final : public Object {
|
|||
JS_OBJECT(AsyncFromSyncIterator, Object);
|
||||
|
||||
public:
|
||||
static NonnullGCPtr<AsyncFromSyncIterator> create(Realm&, Iterator sync_iterator_record);
|
||||
static NonnullGCPtr<AsyncFromSyncIterator> create(Realm&, IteratorRecord sync_iterator_record);
|
||||
|
||||
virtual ThrowCompletionOr<void> initialize(Realm&) override;
|
||||
virtual ~AsyncFromSyncIterator() override = default;
|
||||
|
||||
void visit_edges(Visitor& visitor) override;
|
||||
|
||||
Iterator& sync_iterator_record() { return m_sync_iterator_record; }
|
||||
Iterator const& sync_iterator_record() const { return m_sync_iterator_record; }
|
||||
IteratorRecord& sync_iterator_record() { return m_sync_iterator_record; }
|
||||
IteratorRecord const& sync_iterator_record() const { return m_sync_iterator_record; }
|
||||
|
||||
private:
|
||||
AsyncFromSyncIterator(Realm&, Iterator sync_iterator_record);
|
||||
AsyncFromSyncIterator(Realm&, IteratorRecord sync_iterator_record);
|
||||
|
||||
Iterator m_sync_iterator_record; // [[SyncIteratorRecord]]
|
||||
IteratorRecord m_sync_iterator_record; // [[SyncIteratorRecord]]
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue