Skip to content

Commit

Permalink
wrap %AsyncFromSyncIteratorPrototype%
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Jul 18, 2022
1 parent 4a26b1c commit 327f210
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core-js/modules/esnext.async-iterator.from.js
Expand Up @@ -31,7 +31,7 @@ $({ target: 'AsyncIterator', stat: true, forced: true }, {
}
if (iterator === undefined) {
usingIterator = getIteratorMethod(object);
if (usingIterator) return new AsyncFromSyncIterator(getIterator(object, usingIterator));
if (usingIterator) iterator = new AsyncFromSyncIterator(getIterator(object, usingIterator));
}
return new AsyncIteratorProxy(getIteratorDirect(iterator !== undefined ? iterator : object));
}
Expand Down

0 comments on commit 327f210

Please sign in to comment.