Backed out changeset 2c6e366ebc6e (bug 1502028) for wpt failures on pipe-through.dedicatedworker.html. CLOSED TREE

This commit is contained in:
Narcis Beleuzu 2018-10-26 21:12:32 +03:00
Родитель 6e9cde0e13
Коммит 737cd420f5
1 изменённых файлов: 22 добавлений и 4 удалений

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

@ -1140,11 +1140,27 @@ ReadableStream_getReader(JSContext* cx, unsigned argc, Value* vp)
return true; return true;
} }
// Streams spec, 3.2.5.4. pipeThrough({ writable, readable }, options) // Streams spec, 3.2.4.4. pipeThrough({ writable, readable }, options)
// Not implemented. static MOZ_MUST_USE bool
ReadableStream_pipeThrough(JSContext* cx, unsigned argc, Value* vp)
{
JS_ReportErrorNumberASCII(cx, GetErrorMessage, nullptr,
JSMSG_READABLESTREAM_METHOD_NOT_IMPLEMENTED, "pipeThrough");
return false;
// // Step 1: Perform ? Invoke(this, "pipeTo", « writable, options »).
// Streams spec, 3.2.5.5. pipeTo(dest, { preventClose, preventAbort, preventCancel } = {}) // // Step 2: Return readable.
// Not implemented. }
// Streams spec, 3.2.4.5. pipeTo(dest, { preventClose, preventAbort, preventCancel } = {})
// TODO: Unimplemented since spec is not complete yet.
static MOZ_MUST_USE bool
ReadableStream_pipeTo(JSContext* cx, unsigned argc, Value* vp)
{
JS_ReportErrorNumberASCII(cx, GetErrorMessage, nullptr,
JSMSG_READABLESTREAM_METHOD_NOT_IMPLEMENTED, "pipeTo");
return false;
}
static MOZ_MUST_USE bool static MOZ_MUST_USE bool
ReadableStreamTee(JSContext* cx, Handle<ReadableStream*> stream, bool cloneForBranch2, ReadableStreamTee(JSContext* cx, Handle<ReadableStream*> stream, bool cloneForBranch2,
@ -1186,6 +1202,8 @@ ReadableStream_tee(JSContext* cx, unsigned argc, Value* vp)
static const JSFunctionSpec ReadableStream_methods[] = { static const JSFunctionSpec ReadableStream_methods[] = {
JS_FN("cancel", ReadableStream_cancel, 1, 0), JS_FN("cancel", ReadableStream_cancel, 1, 0),
JS_FN("getReader", ReadableStream_getReader, 0, 0), JS_FN("getReader", ReadableStream_getReader, 0, 0),
JS_FN("pipeThrough", ReadableStream_pipeThrough, 2, 0),
JS_FN("pipeTo", ReadableStream_pipeTo, 1, 0),
JS_FN("tee", ReadableStream_tee, 0, 0), JS_FN("tee", ReadableStream_tee, 0, 0),
JS_FS_END JS_FS_END
}; };