ctimmerm / axios-mock-adapter

Axios adapter that allows to easily mock requests
MIT License
3.44k stars 244 forks source link

toString.call not working in IE11 #260

Closed cenfun closed 4 years ago

cenfun commented 4 years ago

https://github.com/ctimmerm/axios-mock-adapter/blob/4d591122b8b22c5acba2ccee683f6ccd0a928d0f/src/utils.js#L19 https://github.com/ctimmerm/axios-mock-adapter/blob/4d591122b8b22c5acba2ccee683f6ccd0a928d0f/src/utils.js#L31

You should be doing it like this Object.prototype.toString.call(val) Or var toString = {}.toString; toString.call(val) Could you please fix it? Thanks