Bug 1752880 - Cleanup ErrorResult naming style r=saschanaz

Differential Revision: https://phabricator.services.mozilla.com/D143413
This commit is contained in:
Matthew Gaudet 2022-04-20 14:34:18 +00:00
Родитель 97c021a7ba
Коммит 604560c365
3 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -26,18 +26,18 @@ struct ReadIntoRequest : public nsISupports,
// An algorithm taking a chunk, called when a chunk is available for reading
virtual void ChunkSteps(JSContext* aCx, JS::Handle<JS::Value> aChunk,
ErrorResult& errorResult) = 0;
ErrorResult& aRv) = 0;
// An algorithm taking a chunk or undefined, called when no chunks are
// available because the stream is closed
MOZ_CAN_RUN_SCRIPT
virtual void CloseSteps(JSContext* aCx, JS::Handle<JS::Value> aChunk,
ErrorResult& errorResult) = 0;
ErrorResult& aRv) = 0;
// An algorithm taking a JavaScript value, called when no chunks are available
// because the stream is errored
virtual void ErrorSteps(JSContext* aCx, JS::Handle<JS::Value> e,
ErrorResult& errorResult) = 0;
ErrorResult& aRv) = 0;
protected:
virtual ~ReadIntoRequest() = default;

Просмотреть файл

@ -92,7 +92,7 @@ struct Read_ReadIntoRequest final : public ReadIntoRequest {
explicit Read_ReadIntoRequest(Promise* aPromise) : mPromise(aPromise) {}
void ChunkSteps(JSContext* aCx, JS::Handle<JS::Value> aChunk,
ErrorResult& errorResult) override {
ErrorResult& aRv) override {
MOZ_ASSERT(aChunk.isObject());
// https://streams.spec.whatwg.org/#byob-reader-read Step 6.
//
@ -115,7 +115,7 @@ struct Read_ReadIntoRequest final : public ReadIntoRequest {
}
void CloseSteps(JSContext* aCx, JS::Handle<JS::Value> aChunk,
ErrorResult& errorResult) override {
ErrorResult& aRv) override {
MOZ_ASSERT(aChunk.isObject() || aChunk.isUndefined());
// https://streams.spec.whatwg.org/#byob-reader-read Step 6.
//
@ -139,7 +139,7 @@ struct Read_ReadIntoRequest final : public ReadIntoRequest {
}
void ErrorSteps(JSContext* aCx, JS::Handle<JS::Value> e,
ErrorResult& errorResult) override {
ErrorResult& aRv) override {
// https://streams.spec.whatwg.org/#byob-reader-read Step 6.
//
// error steps, given e:

Просмотреть файл

@ -862,7 +862,7 @@ class PullWithBYOBReader_ReadIntoRequest final : public ReadIntoRequest {
}
void ErrorSteps(JSContext* aCx, JS::Handle<JS::Value> e,
ErrorResult& errorResult) override {
ErrorResult& aRv) override {
// Step 1.
mTeeState->SetReading(false);
}