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 upCleanup arraybufferview type #15653
Cleanup arraybufferview type #15653
Conversation
highfive
commented
Feb 20, 2017
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @cbrewster (or someone else) soon. |
highfive
commented
Feb 20, 2017
highfive
commented
Feb 20, 2017
|
Note: need to update the js crate ( Furthermore no additional tests are necessary because no functionality changed, only the API used is different. |
|
LGTM once nits are address, js is updated, and this is squashed |
| Err(_) => return Err(Error::Type("Not an ArrayBufferView".to_owned())), | ||
| }; | ||
|
|
||
| if !self.validate_framebuffer_complete() { | ||
| return Ok(()); | ||
| } | ||
|
|
||
| match { JS_GetArrayBufferViewType(pixels) } { | ||
| match { array_type } { |
This comment has been minimized.
This comment has been minimized.
| return Err(Error::TypeMismatch); | ||
| } | ||
|
|
||
|
|
This comment has been minimized.
This comment has been minimized.
|
The merge commit has to go away before we merge this. |
d8f9ed4
to
ccc1df2
|
Sorry in a botched squash I accidentally lost the edit history, but all comments addressed and merge commits are gone. PTAL |
|
Looks good, please run |
|
I ran |
|
You'll need to checkin the updated Cargo.lock |
…ArrayBufferView impl's method get_array_type()
43b4292
to
4fc3e7e
|
Done. Thanks for the help! |
|
@bors-servo: r=cbrewster |
|
|
Cleanup arraybufferview type <!-- Please describe your changes on the following line: --> Replace uses of spidermonkey-specific JS_GetArrayBufferViewType with ArrayBufferView impl's method get_array_type(). Tests pass: ./mach test-wpt tests/wpt/web-platform-tests/WebCrypto ./mach test-wpt tests/wpt/web-platform-tests/webgl --- <!-- 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 #15605 (github issue number if applicable). - [x] There are tests for these changes <!-- 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/15653) <!-- Reviewable:end -->
|
|
samliu commentedFeb 20, 2017
•
edited by larsbergstrom
Replace uses of spidermonkey-specific JS_GetArrayBufferViewType with ArrayBufferView impl's method get_array_type().
Tests pass:
./mach test-wpt tests/wpt/web-platform-tests/WebCrypto
./mach test-wpt tests/wpt/web-platform-tests/webgl
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is