Skip to content

Commit

Permalink
wrap %AsyncFromSyncIteratorPrototype%
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Jul 24, 2022
1 parent 2297200 commit d078d00
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
Original file line number Diff line number Diff line change
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 d078d00

Please sign in to comment.