xgrommx / rx-book

xgrommx.github.io/rx-book
1.66k stars 186 forks source link

`throwError` should be `throw` #68

Open mocheng opened 7 years ago

mocheng commented 7 years ago

In this page, http://xgrommx.github.io/rx-book/content/getting_started_with_rxjs/creating_and_querying_observable_sequences/bridging_to_promises.html

The code snippet doesn't work

var source2 = Rx.Observable.throwError(new Error('reason')).toPromise(RSVP.Promise);

I suppose the throwError should be throw.

moreJs commented 7 years ago

+1