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

fetchival.fetch throws an Illegal invocation error #1

Closed
leonderijke opened this issue May 6, 2015 · 2 comments
Closed

fetchival.fetch throws an Illegal invocation error #1

leonderijke opened this issue May 6, 2015 · 2 comments

Comments

@leonderijke
Copy link

Tested in Chrome 42, which has native support for fetch and ES6 Promises: http://codepen.io/leonderijke/pen/pJjdxj?editors=001

When calling fetchival('/foo').get(), fetchival.fetch throws an Illegal invocation TypeError.

Running the tests in Chrome 42 gives the same result: all tests fail with TypeError: Illegal invocation.

@typicode
Copy link
Owner

typicode commented May 6, 2015

Thanks for raising this issue.
Should be good with v0.1.2

fetch wasn't called with the right context. I've added .bind(window)

@leonderijke
Copy link
Author

Yes, confirming that this error is fixed. Thanks!

typicode pushed a commit that referenced this issue Mar 28, 2016
fix(fetchival): Changed to delete opts.body when body is not used.
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