Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: d99c4d092f9d0c196bf03fa143af3ad61f7065c3
https://github.com/WebKit/WebKit/commit/d99c4d092f9d0c196bf03fa143af3ad61f7065c3
Author: Youenn Fablet <[email protected]>
Date: 2026-01-28 (Wed, 28 Jan 2026)
Changed paths:
A LayoutTests/streams/domAsyncIterator-expected.txt
A LayoutTests/streams/domAsyncIterator.html
M Source/JavaScriptCore/runtime/IteratorOperations.cpp
M Source/JavaScriptCore/runtime/IteratorOperations.h
M Source/WebCore/Sources.txt
M Source/WebCore/WebCore.xcodeproj/project.pbxproj
A Source/WebCore/bindings/js/DOMAsyncIterator.cpp
A Source/WebCore/bindings/js/DOMAsyncIterator.h
M Source/WebCore/testing/Internals.cpp
M Source/WebCore/testing/Internals.h
M Source/WebCore/testing/Internals.idl
Log Message:
-----------
WebCore classes should be able to iterate over a JS asynchronous iterable
rdar://168664049
https://bugs.webkit.org/show_bug.cgi?id=306024
Reviewed by Chris Dumez.
We implement DOMAsyncIterator which is a wrapper around a JS async iterator.
This allows WebCore code to easily manipulate iterable values, like for
ReadableStream.from.
It is implemented by storing the next method directly in DOMAsyncIterator which
derives from DOMGuarded and the iterator object as a separate DOMGuardedObject.
We export some new methods from JSC, while keeping existing JSC equivalents to
allow LTO.
Covered by added tests using new dedicated internals API.
Canonical link: https://commits.webkit.org/306339@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications