Skip to content

Commit

Permalink
some stylistic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Jan 14, 2023
1 parent 32cbd8f commit b4d713b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/core-js/internals/async-iterator-create-proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ var createAsyncIteratorProxyPrototype = function (IS_ITERATOR) {
var returnMethod, result;
var completion = perform(function () {
if (state.inner) try {
iteratorClose(state.inner.iterator, 'return');
iteratorClose(state.inner.iterator, 'normal');
} catch (error) {
return iteratorClose(iterator, 'throw', error);
}
Expand Down
4 changes: 2 additions & 2 deletions packages/core-js/internals/iterator-create-proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ var createIteratorProxyPrototype = function (IS_ITERATOR) {
return returnMethod ? call(returnMethod, iterator) : createIterResultObject(undefined, true);
}
if (state.inner) try {
iteratorClose(state.inner.iterator, 'return');
iteratorClose(state.inner.iterator, 'normal');
} catch (error) {
return iteratorClose(iterator, 'throw', error);
}
iteratorClose(iterator, 'return');
iteratorClose(iterator, 'normal');
return createIterResultObject(undefined, true);
}
});
Expand Down

0 comments on commit b4d713b

Please sign in to comment.