tc39 / proposal-math-sum

TC39 proposal to add a summation method to JavaScript
https://tc39.github.io/proposal-math-sum
72 stars 1 forks source link

Missing IteratorClose when throwing errors #7

Closed anba closed 4 months ago

anba commented 4 months ago

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.

bakkot commented 4 months ago

Thanks for the report, fixed.