зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1734174 - Remove unneeded JSContext parameter from SetUpReadableStreamDefaultReader() r=mgaudet
Depends on D139868 Differential Revision: https://phabricator.services.mozilla.com/D139869
This commit is contained in:
Родитель
914e377cf3
Коммит
b3c6f204b0
|
@ -469,7 +469,7 @@ AcquireReadableStreamDefaultReader(JSContext* aCx, ReadableStream* aStream,
|
|||
new ReadableStreamDefaultReader(aStream->GetParentObject());
|
||||
|
||||
// Step 2.
|
||||
SetUpReadableStreamDefaultReader(aCx, reader, aStream, aRv);
|
||||
SetUpReadableStreamDefaultReader(reader, aStream, aRv);
|
||||
if (aRv.Failed()) {
|
||||
return nullptr;
|
||||
}
|
||||
|
|
|
@ -402,8 +402,7 @@ already_AddRefed<Promise> ReadableStreamGenericReader::Cancel(
|
|||
}
|
||||
|
||||
// https://streams.spec.whatwg.org/#set-up-readable-stream-default-reader
|
||||
void SetUpReadableStreamDefaultReader(JSContext* aCx,
|
||||
ReadableStreamDefaultReader* aReader,
|
||||
void SetUpReadableStreamDefaultReader(ReadableStreamDefaultReader* aReader,
|
||||
ReadableStream* aStream,
|
||||
ErrorResult& aRv) {
|
||||
// Step 1.
|
||||
|
|
|
@ -91,8 +91,8 @@ class ReadableStreamDefaultReader final : public ReadableStreamGenericReader,
|
|||
};
|
||||
|
||||
extern void SetUpReadableStreamDefaultReader(
|
||||
JSContext* aCx, ReadableStreamDefaultReader* aReader,
|
||||
ReadableStream* aStream, ErrorResult& aRv);
|
||||
ReadableStreamDefaultReader* aReader, ReadableStream* aStream,
|
||||
ErrorResult& aRv);
|
||||
|
||||
void ReadableStreamDefaultReaderErrorReadRequests(
|
||||
JSContext* aCx, ReadableStreamDefaultReader* aReader,
|
||||
|
|
Загрузка…
Ссылка в новой задаче