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

Fix MSIE compatibility #914

Merged

Conversation

alexbakum
Copy link

@alexbakum alexbakum commented Feb 18, 2021

Version 3.6.0 (https://github.com/github/fetch/pull/881/files#diff-3fc6f1265a180d15035618e36ca1da88d092bacb4fc10a423938fa62e4f5f58fR259) broke MSIE compatibility.
String.prototype.includes is not available within any version of MSIE – see compatibility table on MDN

@alexbakum
Copy link
Author

@JakeChampion please take a look

@JakeChampion JakeChampion linked an issue Feb 18, 2021 that may be closed by this pull request
@JakeChampion JakeChampion merged commit 5d3952d into JakeChampion:master Feb 18, 2021
@dasa
Copy link

dasa commented Feb 18, 2021

@JakeChampion
Copy link
Owner

Should this be set back too?

https://github.com/github/fetch/blob/90fb680c1f50181782f276122c1b1115535b1603/.eslintrc.json#L3

it can't because the file use export syntax

@dasa
Copy link

dasa commented Feb 18, 2021

Would it work if sourceType was set to "module"? https://eslint.org/docs/user-guide/configuring/language-options#specifying-parser-options

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

const in fetch.js causing crashes in older browsers
3 participants