Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImplement support for blobs created from typed arrays #20348
Closed
Labels
Comments
|
@highfive assign me |
|
Hey @christianpoveda! Thanks for your interest in working on this issue. It's now assigned to you! |
bors-servo
added a commit
that referenced
this issue
Mar 21, 2018
Blobs support typed arrays now <!-- Please describe your changes on the following line: --> Blobs support typed arrays now, the relevant test were modified --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #20348 (github issue number if applicable). <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20370) <!-- Reviewable:end -->
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Now that #20267 has merged we can implement APIs that accept typed arrays as arguments. The ArrayBuffer and ArrayBufferView types are commented out in the BlobPart union, so uncommenting them means we need to modify the blob constructor to deal with typed arrays.
Code:
components/script/dom/webidls/Blob.webidl,components/script/dom/blob.rsTests:
./mach test-wpt tests/wpt/web-platform-tests/FileAPI(there should be some new passing tests)