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 upAdd consume stream callback #24653
Add consume stream callback #24653
Conversation
highfive
commented
Nov 4, 2019
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @ferjm (or someone else) soon. |
highfive
commented
Nov 4, 2019
|
Heads up! This PR modifies the following files:
|
highfive
commented
Nov 4, 2019
|
Good start! We should add the call to InitStreamConsumerCallback as part of this pull request. |
|
Almost there! |
|
If you add a call to InitStreamConsumerCallback that makes use of consume_stream and report_stream_error, then we can run the automated tests and see if any of these changes are observable! |
|
@bors-servo try=wpt |
…nitial-2, r=<try> Add consume stream callback <!-- Please describe your changes on the following line: --> Added the consume stream callback function. Completed steps 1, 2(1-5) and 3 mentioned [here](https://webassembly.github.io/spec/web-api/index.html#compile-a-potential-webassembly-response) --- <!-- 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 #21476 <!-- 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. -->
|
I did a little poking around in this branch on my own machine and discovered that if you add the following:
Then you will start getting meaningful test results by running |
|
@jdm Can you give a little more detail on where to invoke the InitDispatchToEventLoop method. On adding it to the new_rt_and_cx_with_parent() I see no change in behaviour in the test results from ./mach test-wpt tests/wpt/web-platform-tests/wasm/webapi |
…nitial-2, r=jdm Add consume stream callback <!-- Please describe your changes on the following line: --> Added the consume stream callback function as per the steps mentioned [here](https://webassembly.github.io/spec/web-api/index.html#compile-a-potential-webassembly-response) --- <!-- 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 #21476 <!-- 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. -->
|
|
|
@bors-servo retry |
|
|
…nitial-2, r=jdm Add consume stream callback <!-- Please describe your changes on the following line: --> Added the consume stream callback function as per the steps mentioned [here](https://webassembly.github.io/spec/web-api/index.html#compile-a-potential-webassembly-response) --- <!-- 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 #21476 <!-- 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. -->
|
|
|
@bors-servo retry |
|
|
…nitial-2, r=jdm Add consume stream callback <!-- Please describe your changes on the following line: --> Added the consume stream callback function as per the steps mentioned [here](https://webassembly.github.io/spec/web-api/index.html#compile-a-potential-webassembly-response) --- <!-- 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 #21476 <!-- 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. -->
|
|
|
@bors-servo retry |
|
|
|
|
ridhimrastogi commentedNov 4, 2019
•
edited
Added the consume stream callback function as per the steps mentioned here
./mach build -ddoes not report any errors./mach test-tidydoes not report any errors