iteratorWithReturn[ITERATOR] = function () {
return this;
};
- // eslint-disable-next-line no-throw-literal -- required for testing
+ // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
Array.from(iteratorWithReturn, function () { throw 2; });
} catch (error) { /* empty */ }