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

throwError should be throw #68

Open
mocheng opened this issue Sep 26, 2016 · 1 comment
Open

throwError should be throw #68

mocheng opened this issue Sep 26, 2016 · 1 comment

Comments

@mocheng
Copy link

mocheng commented Sep 26, 2016

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
Copy link

moreJs commented Oct 9, 2016

+1

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

No branches or pull requests

2 participants