I have the below script that shows a significant difference between version 6.6.7 and version 7.2.0 of rxjs.
import { of } from 'rxjs';
of(1, 2, 3, 4).subscribe((x) => {
console.log(`x: ${x}`);
if (x === 2) {
throw new Error('xxx');
}
});
6.6.7 prints 1 and 2 but version 7.2.0 prints 1, 2, 3 and 4.
Is that intended? What is the background / reasoning?