tc39/proposal-math-sum

Missing IteratorClose when throwing errors

Closed this issue · 1 comments

anba commented

If count ≥ 2**53, throw a RangeError exception.

and

If next is not a number, throw a TypeError exception.

both need to call IteratorClose to properly close the iterator.

Thanks for the report, fixed.