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

Align used flag error message to Chrome's implementation #44

Merged
merged 2 commits into from
Dec 19, 2014

Conversation

josh
Copy link
Contributor

@josh josh commented Dec 18, 2014

Chrome experimental fetch() implementation throws the correct TypeError but with a "Already read" message.

If used flag is set, reject p with a TypeError.

The spec doesn't define what the error message should exactly be. Maybe we shouldn't be testing it?

/cc @dgraham @annevk

Related #41.

@dgraham
Copy link
Contributor

dgraham commented Dec 18, 2014

Testing the error message was added in #10 to make sure it was failing for the right reason. I'm fine with removing that assertion and just relying on testing the error for TypeError.

@domenic
Copy link

domenic commented Dec 19, 2014

Error messages are never specced since they can vary in different locales, browsers, etc.

@josh
Copy link
Contributor Author

josh commented Dec 19, 2014

Alright, I'm just going to drop those assertions. But I still changed our error message to match Chromes.

josh added a commit that referenced this pull request Dec 19, 2014
Align used flag error message to Chrome's implementation
@josh josh merged commit d03e848 into master Dec 19, 2014
@josh josh deleted the align-chrome-error-messages branch December 19, 2014 20:44
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 4, 2020
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.

3 participants