Skip to content

Commit 240a68e

Browse files
committed
Add async iteration test for pure version
1 parent 3195dd3 commit 240a68e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import $Symbol from '@core-js/pure/full/symbol/index';
2+
3+
async function* makeAsyncIterable() {
4+
yield 1;
5+
yield 2;
6+
}
7+
8+
for await (const x of {
9+
[$Symbol.asyncIterator]: makeAsyncIterable,
10+
}) {
11+
const n: number = x;
12+
}

0 commit comments

Comments
 (0)