Closed leonderijke closed 9 years ago
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.
fetchival('/foo').get()
fetchival.fetch
Illegal invocation
Running the tests in Chrome 42 gives the same result: all tests fail with TypeError: Illegal invocation.
TypeError: Illegal invocation
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)
.bind(window)
Yes, confirming that this error is fixed. Thanks!
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 anIllegal invocation
TypeError.Running the tests in Chrome 42 gives the same result: all tests fail with
TypeError: Illegal invocation
.