Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Super gross mode no longer sync throws flattened errors #5983

Closed
benlesh opened this issue Jan 26, 2021 · 0 comments · Fixed by #5984
Closed

Super gross mode no longer sync throws flattened errors #5983

benlesh opened this issue Jan 26, 2021 · 0 comments · Fixed by #5984
Assignees

Comments

@benlesh
Copy link
Member

benlesh commented Jan 26, 2021

Given this code:

import { throwError, of, config } from "rxjs";
import { concatMap } from "rxjs/operators";

console.clear();

config.useDeprecatedSynchronousErrorHandling = true;

try {
  of(1)
    .pipe(concatMap(() => throwError(new Error("test"))))
    .subscribe(console.log);
} catch (err) {
  console.log("Caught!", err);
}

It should log "Caught!" and the error, but it does not.

Related: #5979

cc @leggechr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant