[fetch] Request constructor should throw an error if ReadableStream is locked.
This CL make Request constructor follow https://fetch.spec.whatwg.org/#dom-request: "38. If inputBody is body and input is disturbed or locked, then throw a TypeError." This CL also refactors the constructor around body extracting following the last spec. Bug: 1105704 Change-Id: Ie2ba890828e2091dbc0c55fa7120fb7ec37ebc13 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2309369Reviewed-by:Yutaka Hirano <yhirano@chromium.org> Commit-Queue: Yoichi Osato <yoichio@chromium.org> Cr-Commit-Position: refs/heads/master@{#792488}
Showing
Please register or sign in to comment