Skip to content

check for global.fetch before binding it#674

Merged
Richienb merged 1 commit intonode-fetch:masterfrom
bbosiljcic:fix-bind-issue
Sep 16, 2019
Merged

check for global.fetch before binding it#674
Richienb merged 1 commit intonode-fetch:masterfrom
bbosiljcic:fix-bind-issue

Conversation

@bbosiljcic
Copy link
Copy Markdown
Contributor

We ran into some issues where this was executed in browsers that didn't support fetch (e.g. IE11)

@Richienb Richienb requested review from bitinn and xxczaki September 16, 2019 10:54
Copy link
Copy Markdown
Member

@Richienb Richienb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. We just need one more approving review from @bitinn or @xxczaki.

@bitinn
Copy link
Copy Markdown
Collaborator

bitinn commented Sep 16, 2019

AFAIK we will be dropping browser export in v3 release, so this is a band-aid patch for v2 only, if there is going to be another release of v2.

The correct solution would be to use some of these suggested modules that export correctly given contexts.

https://github.com/bitinn/node-fetch#motivation

Otherwise LGTM

@Richienb Richienb merged commit 5535c2e into node-fetch:master Sep 16, 2019
This was referenced Mar 6, 2021
This was referenced Mar 17, 2021
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

Successfully merging this pull request may close these issues.

3 participants