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

Fixes wrong structure of fullReader.read() result. #8596

Merged
merged 1 commit into from
Jul 5, 2017

Conversation

mukulmishra18
Copy link
Contributor

This PR fixes a minor issue of caching chunks and retuning in fullReader.read() method of network.js file. We are pushing chunk into _cachedChunks, and returning as is in read() method, so fullReader.read() gives ArrayBuffer() instead of { value:..., done:..., }.

If we force to do caching instead of returning chunk directly from here. It will make network_spec.js test to fail, with Error: result.value is undefined.

@yurydelendik yurydelendik merged commit b3bac51 into mozilla:master Jul 5, 2017
@yurydelendik
Copy link
Contributor

Thank you for the patch.

It is weird that we did not hit this path (even during testing).

movsb pushed a commit to movsb/pdf.js that referenced this pull request Jul 14, 2018
Fixes wrong structure of fullReader.read() result.
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.

2 participants