I understand that it doesn't make so much sense to pass a non natural number to repeat. In our case, the repeat count was calculated dynamically, which made it unclear that this was an issue.
I realize this isn't a problem in later (or "non-lite") versions, just leaving this info here for future googlers.
Originally posted here: https://github.com/ReactiveX/rxjs/issues/3415, but was told it belongs in this repo.
RxJS version:
rx-lite@4.0.8
Code to reproduce:
Expected behavior:
Either throw an error, or repeat 2, or 3 times.
Actual behavior:
Repeats infinitely, logs:
Additional information:
I understand that it doesn't make so much sense to pass a non natural number to
repeat
. In our case, the repeat count was calculated dynamically, which made it unclear that this was an issue.I realize this isn't a problem in later (or "non-lite") versions, just leaving this info here for future googlers.