Rxjs: Errors in Observable.create arg not caught

Created on 16 Jul 2016  路  4Comments  路  Source: ReactiveX/rxjs

RxJS version:

5.0 beta 10

Code to reproduce:

Observable.create(() => { throw new Error('oops'); }).subscribe({error: _ => console.log('got it')});

Expected behavior:

> got it

Actual behavior:

Error: oops

Additional information:

Rx 4 exhibits the expected behavior here (catching the error and sending it to the observer).

cc @hansonw

critical bug

All 4 comments

@matthewwithanm hm, good catch. I think I can get a PR for this ready soon.

hi! I can still reproduce this with the latest stable RxJS as of now (5.4.3). Is d4a9aac7fa151695fe5567192f370164b001501b a breaking change targeted at 6.0 only or will this patch land in v5 at some point?

@wbinnssmith I would expect this should go out in a patch release. @benlesh thoughts? I saw @jayphelps' PR went into master, so did it already go out?

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

marcusradell picture marcusradell  路  4Comments

peterbakonyi05 picture peterbakonyi05  路  4Comments

Zzzen picture Zzzen  路  3Comments

LittleFox94 picture LittleFox94  路  3Comments

benlesh picture benlesh  路  3Comments