[ReadableStream] Remove ExceptionState& from two methods
ReadableStream::LockAndDisturb() can no longer throw now that the V8 Extras implementation has been removed. Remove the ExceptionState& argument. Also remove the ScriptState::Scope from the method which is not needed. ReadableStream::GetReaderNotForAuthorCode() is never called on a locked stream, so it cannot throw. Remove the ExceptionState& argument. In order to ensure that ReadableStream::GetReaderNotForAuthorCode() is not called on a locked stream, check in BodyStreamBuffer::ExtractBody() whether the stream is locked or disturbed and throw an exception. This is only done when FetchUploadStreaing is enabled. This actually improves our alignment with the Fetch Standard and improves our test pass rate. Many fetch-related methods no longer need an ExceptionState& argument either, so remove those unneeded arguments too. Bug: 1010794 Change-Id: I6c84f8bff006c696edca13b7a46fcbc10c142201 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2217830 Commit-Queue: Adam Rice <ricea@chromium.org> Reviewed-by:Peter Beverloo <peter@chromium.org> Reviewed-by:
Yoichi Osato <yoichio@chromium.org> Reviewed-by:
Dan Sanders <sandersd@chromium.org> Reviewed-by:
Matt Falkenhagen <falken@chromium.org> Reviewed-by:
Yutaka Hirano <yhirano@chromium.org> Cr-Commit-Position: refs/heads/master@{#790089}
Showing
Please register or sign in to comment