зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1502355 - Make |ReadableStreamPipeTo| return |PromiseObject*|. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D65057 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
7db1aac145
Коммит
d451364e60
|
@ -612,11 +612,12 @@ MOZ_MUST_USE bool js::ReadableStreamTee(
|
|||
* ReadableStreamPipeTo ( source, dest, preventClose, preventAbort,
|
||||
* preventCancel, signal )
|
||||
*/
|
||||
JSObject* js::ReadableStreamPipeTo(JSContext* cx,
|
||||
Handle<ReadableStream*> unwrappedSource,
|
||||
Handle<WritableStream*> unwrappedDest,
|
||||
bool preventClose, bool preventAbort,
|
||||
bool preventCancel, Handle<Value> signal) {
|
||||
PromiseObject* js::ReadableStreamPipeTo(JSContext* cx,
|
||||
Handle<ReadableStream*> unwrappedSource,
|
||||
Handle<WritableStream*> unwrappedDest,
|
||||
bool preventClose, bool preventAbort,
|
||||
bool preventCancel,
|
||||
Handle<Value> signal) {
|
||||
JS_ReportErrorASCII(cx, "XXX ceci n'est pas une pipe");
|
||||
return nullptr;
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ extern MOZ_MUST_USE bool ReadableStreamTee(
|
|||
bool cloneForBranch2, JS::MutableHandle<ReadableStream*> branch1Stream,
|
||||
JS::MutableHandle<ReadableStream*> branch2Stream);
|
||||
|
||||
extern MOZ_MUST_USE JSObject* ReadableStreamPipeTo(
|
||||
extern MOZ_MUST_USE PromiseObject* ReadableStreamPipeTo(
|
||||
JSContext* cx, JS::Handle<ReadableStream*> unwrappedSource,
|
||||
JS::Handle<WritableStream*> unwrappedDest, bool preventClose,
|
||||
bool preventAbort, bool preventCancel, JS::Handle<JS::Value> signal);
|
||||
|
|
Загрузка…
Ссылка в новой задаче