Skip to content

Commit f9bf401

Browse files
committed
fix(Iterator): change Iterator to static interop
due to bug in sdk: dart-lang/sdk#53532 this class was getting cast to `DomIterator` resolves Zekfad/fetch_client#9
1 parent f89c02a commit f9bf401

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lib/src/iterator.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ import 'iterator_result.dart';
99
/// All iterator protocol methods (`next()`, `return()`, and `throw()`) are
1010
/// expected to return an object implementing the [IteratorResult] interface.
1111
@JS()
12-
@anonymous
12+
@staticInterop
1313
class Iterator<T> {
14+
}
15+
16+
extension IteratorInstanceMembers<T> on Iterator<T> {
1417
/// A function that accepts zero or one argument and returns an object
1518
/// conforming to the [IteratorResult] interface.
1619
///

0 commit comments

Comments
 (0)