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

Minimal Fetch API polyfill #934

Merged
merged 1 commit into from Nov 17, 2015
Merged

Minimal Fetch API polyfill #934

merged 1 commit into from Nov 17, 2015

Conversation

dvoytenko
Copy link
Contributor

Partial for #657

/cc @erwinmombay

}
};
xhr.onerror = () => {
reject(new Error('Network failure'));
Copy link
Member

Choose a reason for hiding this comment

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

Forward error passed into onerror?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

onerror's argument is an event. From what I tried to find - I don't see any errors there. Just basic event info with type=error and no real additional information.

@cramforce
Copy link
Member

LGTM

dvoytenko added a commit that referenced this pull request Nov 17, 2015
Minimal Fetch API polyfill
@dvoytenko dvoytenko merged commit 2b5b6dc into ampproject:master Nov 17, 2015
@dvoytenko dvoytenko deleted the xhr1 branch November 17, 2015 00:46
@qidonna qidonna mentioned this pull request Jan 6, 2020
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.

None yet

2 participants