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 Step 1 of Response API Clone Method #13895
Conversation
highfive
commented
Oct 22, 2016
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @KiChjang (or someone else) soon. |
highfive
commented
Oct 22, 2016
|
Looks good! Just 2 minor nits and r=me. |
| @@ -298,7 +298,9 @@ impl ResponseMethods for Response { | |||
| // https://fetch.spec.whatwg.org/#dom-response-clone | |||
| fn Clone(&self) -> Fallible<Root<Response>> { | |||
| // Step 1 | |||
| // TODO: This step relies on body and stream, which are still unimplemented. | |||
| if self.is_locked() || self.BodyUsed() { | |||
This comment has been minimized.
This comment has been minimized.
| @@ -298,7 +298,9 @@ impl ResponseMethods for Response { | |||
| // https://fetch.spec.whatwg.org/#dom-response-clone | |||
| fn Clone(&self) -> Fallible<Root<Response>> { | |||
| // Step 1 | |||
| // TODO: This step relies on body and stream, which are still unimplemented. | |||
| if self.is_locked() || self.BodyUsed() { | |||
| return Err(Error::Type("cannot clone a disturbed response".to_string())) | |||
This comment has been minimized.
This comment has been minimized.
|
@bors-servo: r=KiChjang |
|
|
Implement Step 1 of Response API Clone Method <!-- Please describe your changes on the following line: --> Implements first step of response API Clone method. Response Clone test expectations have been updated. Fixes issue #13888. --- <!-- 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 #13888. <!-- Either: --> - [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/13895) <!-- Reviewable:end -->
|
|
|
@bors-servo: retry |
|
|
|
|
lautat commentedOct 22, 2016
•
edited by larsbergstrom
Implements first step of response API Clone method. Response Clone test expectations have been updated. Fixes issue #13888.
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is