зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1700007 - Make some surface changes to ReadableStream required by WebIDL. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D109241
This commit is contained in:
Родитель
610b70603a
Коммит
aaa6a54a43
|
@ -495,14 +495,16 @@ static bool ReadableStream_tee(JSContext* cx, unsigned argc, Value* vp) {
|
|||
// Not implemented.
|
||||
|
||||
static const JSFunctionSpec ReadableStream_methods[] = {
|
||||
JS_FN("cancel", ReadableStream_cancel, 1, 0),
|
||||
JS_FN("getReader", ReadableStream_getReader, 0, 0),
|
||||
JS_FN("cancel", ReadableStream_cancel, 0, JSPROP_ENUMERATE),
|
||||
JS_FN("getReader", ReadableStream_getReader, 0, JSPROP_ENUMERATE),
|
||||
// pipeTo is only conditionally supported right now, so it must be manually
|
||||
// added below if desired.
|
||||
JS_FN("tee", ReadableStream_tee, 0, 0), JS_FS_END};
|
||||
JS_FN("tee", ReadableStream_tee, 0, JSPROP_ENUMERATE), JS_FS_END};
|
||||
|
||||
static const JSPropertySpec ReadableStream_properties[] = {
|
||||
JS_PSG("locked", ReadableStream_locked, 0), JS_PS_END};
|
||||
JS_PSG("locked", ReadableStream_locked, JSPROP_ENUMERATE),
|
||||
JS_STRING_SYM_PS(toStringTag, "ReadableStream", JSPROP_READONLY),
|
||||
JS_PS_END};
|
||||
|
||||
static bool FinishReadableStreamClassInit(JSContext* cx, Handle<JSObject*> ctor,
|
||||
Handle<JSObject*> proto) {
|
||||
|
@ -518,7 +520,7 @@ static bool FinishReadableStreamClassInit(JSContext* cx, Handle<JSObject*> ctor,
|
|||
rco.getReadableStreamPipeToEnabled()) {
|
||||
Rooted<jsid> pipeTo(cx, NameToId(cx->names().pipeTo));
|
||||
if (!DefineFunction(cx, proto, pipeTo, ReadableStream_pipeTo, 2,
|
||||
JSPROP_RESOLVING)) {
|
||||
JSPROP_RESOLVING | JSPROP_ENUMERATE)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -527,7 +529,7 @@ static bool FinishReadableStreamClassInit(JSContext* cx, Handle<JSObject*> ctor,
|
|||
}
|
||||
|
||||
const ClassSpec ReadableStream::classSpec_ = {
|
||||
js::GenericCreateConstructor<ReadableStream::constructor, 2,
|
||||
js::GenericCreateConstructor<ReadableStream::constructor, 0,
|
||||
js::gc::AllocKind::FUNCTION>,
|
||||
js::GenericCreatePrototype<ReadableStream>,
|
||||
nullptr,
|
||||
|
|
|
@ -14,9 +14,6 @@
|
|||
[WritableStream interface: new WritableStream() must inherit property "locked" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[ReadableStream interface: operation cancel(optional any)]
|
||||
expected: FAIL
|
||||
|
||||
[ReadableByteStreamController interface object length]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -89,9 +86,6 @@
|
|||
[ReadableStreamDefaultController interface: operation error(optional any)]
|
||||
expected: FAIL
|
||||
|
||||
[ReadableStream interface: attribute locked]
|
||||
expected: FAIL
|
||||
|
||||
[WritableStreamDefaultWriter interface: existence and properties of interface prototype object's @@unscopables property]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -140,9 +134,6 @@
|
|||
[ReadableStreamDefaultReader must be primary interface of (new ReadableStream()).getReader()]
|
||||
expected: FAIL
|
||||
|
||||
[ReadableStream interface object length]
|
||||
expected: FAIL
|
||||
|
||||
[TransformStreamDefaultController interface: calling enqueue(optional any) on self.transformStreamDefaultController with too few arguments must throw TypeError]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -215,9 +206,6 @@
|
|||
[WritableStreamDefaultWriter interface: attribute ready]
|
||||
expected: FAIL
|
||||
|
||||
[Stringification of new ReadableStream()]
|
||||
expected: FAIL
|
||||
|
||||
[TransformStreamDefaultController interface: self.transformStreamDefaultController must inherit property "enqueue(optional any)" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -296,9 +284,6 @@
|
|||
[Stringification of (new ReadableStream()).getReader()]
|
||||
expected: FAIL
|
||||
|
||||
[ReadableStream interface: operation tee()]
|
||||
expected: FAIL
|
||||
|
||||
[Stringification of self.readableStreamDefaultController]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -347,9 +332,6 @@
|
|||
[ReadableByteStreamController interface: operation close()]
|
||||
expected: FAIL
|
||||
|
||||
[ReadableStream interface: operation getReader(optional ReadableStreamGetReaderOptions)]
|
||||
expected: FAIL
|
||||
|
||||
[TransformStream interface: existence and properties of interface prototype object]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -541,9 +523,6 @@
|
|||
[WritableStream interface: new WritableStream() must inherit property "locked" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[ReadableStream interface: operation cancel(optional any)]
|
||||
expected: FAIL
|
||||
|
||||
[ReadableByteStreamController interface object length]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -616,9 +595,6 @@
|
|||
[ReadableStreamDefaultController interface: operation error(optional any)]
|
||||
expected: FAIL
|
||||
|
||||
[ReadableStream interface: attribute locked]
|
||||
expected: FAIL
|
||||
|
||||
[WritableStreamDefaultWriter interface: existence and properties of interface prototype object's @@unscopables property]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -667,9 +643,6 @@
|
|||
[ReadableStreamDefaultReader must be primary interface of (new ReadableStream()).getReader()]
|
||||
expected: FAIL
|
||||
|
||||
[ReadableStream interface object length]
|
||||
expected: FAIL
|
||||
|
||||
[TransformStreamDefaultController interface: calling enqueue(optional any) on self.transformStreamDefaultController with too few arguments must throw TypeError]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -742,9 +715,6 @@
|
|||
[WritableStreamDefaultWriter interface: attribute ready]
|
||||
expected: FAIL
|
||||
|
||||
[Stringification of new ReadableStream()]
|
||||
expected: FAIL
|
||||
|
||||
[TransformStreamDefaultController interface: self.transformStreamDefaultController must inherit property "enqueue(optional any)" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -823,9 +793,6 @@
|
|||
[Stringification of (new ReadableStream()).getReader()]
|
||||
expected: FAIL
|
||||
|
||||
[ReadableStream interface: operation tee()]
|
||||
expected: FAIL
|
||||
|
||||
[Stringification of self.readableStreamDefaultController]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -874,9 +841,6 @@
|
|||
[ReadableByteStreamController interface: operation close()]
|
||||
expected: FAIL
|
||||
|
||||
[ReadableStream interface: operation getReader(optional ReadableStreamGetReaderOptions)]
|
||||
expected: FAIL
|
||||
|
||||
[TransformStream interface: existence and properties of interface prototype object]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -1068,9 +1032,6 @@
|
|||
[WritableStream interface: new WritableStream() must inherit property "locked" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[ReadableStream interface: operation cancel(optional any)]
|
||||
expected: FAIL
|
||||
|
||||
[ReadableByteStreamController interface object length]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -1143,9 +1104,6 @@
|
|||
[ReadableStreamDefaultController interface: operation error(optional any)]
|
||||
expected: FAIL
|
||||
|
||||
[ReadableStream interface: attribute locked]
|
||||
expected: FAIL
|
||||
|
||||
[WritableStreamDefaultWriter interface: existence and properties of interface prototype object's @@unscopables property]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -1194,9 +1152,6 @@
|
|||
[ReadableStreamDefaultReader must be primary interface of (new ReadableStream()).getReader()]
|
||||
expected: FAIL
|
||||
|
||||
[ReadableStream interface object length]
|
||||
expected: FAIL
|
||||
|
||||
[TransformStreamDefaultController interface: calling enqueue(optional any) on self.transformStreamDefaultController with too few arguments must throw TypeError]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -1269,9 +1224,6 @@
|
|||
[WritableStreamDefaultWriter interface: attribute ready]
|
||||
expected: FAIL
|
||||
|
||||
[Stringification of new ReadableStream()]
|
||||
expected: FAIL
|
||||
|
||||
[TransformStreamDefaultController interface: self.transformStreamDefaultController must inherit property "enqueue(optional any)" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -1350,9 +1302,6 @@
|
|||
[Stringification of (new ReadableStream()).getReader()]
|
||||
expected: FAIL
|
||||
|
||||
[ReadableStream interface: operation tee()]
|
||||
expected: FAIL
|
||||
|
||||
[Stringification of self.readableStreamDefaultController]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -1401,9 +1350,6 @@
|
|||
[ReadableByteStreamController interface: operation close()]
|
||||
expected: FAIL
|
||||
|
||||
[ReadableStream interface: operation getReader(optional ReadableStreamGetReaderOptions)]
|
||||
expected: FAIL
|
||||
|
||||
[TransformStream interface: existence and properties of interface prototype object]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -1595,9 +1541,6 @@
|
|||
[WritableStream interface: new WritableStream() must inherit property "locked" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
[ReadableStream interface: operation cancel(optional any)]
|
||||
expected: FAIL
|
||||
|
||||
[ReadableByteStreamController interface object length]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -1670,9 +1613,6 @@
|
|||
[ReadableStreamDefaultController interface: operation error(optional any)]
|
||||
expected: FAIL
|
||||
|
||||
[ReadableStream interface: attribute locked]
|
||||
expected: FAIL
|
||||
|
||||
[WritableStreamDefaultWriter interface: existence and properties of interface prototype object's @@unscopables property]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -1721,9 +1661,6 @@
|
|||
[ReadableStreamDefaultReader must be primary interface of (new ReadableStream()).getReader()]
|
||||
expected: FAIL
|
||||
|
||||
[ReadableStream interface object length]
|
||||
expected: FAIL
|
||||
|
||||
[TransformStreamDefaultController interface: calling enqueue(optional any) on self.transformStreamDefaultController with too few arguments must throw TypeError]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -1796,9 +1733,6 @@
|
|||
[WritableStreamDefaultWriter interface: attribute ready]
|
||||
expected: FAIL
|
||||
|
||||
[Stringification of new ReadableStream()]
|
||||
expected: FAIL
|
||||
|
||||
[TransformStreamDefaultController interface: self.transformStreamDefaultController must inherit property "enqueue(optional any)" with the proper type]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -1877,9 +1811,6 @@
|
|||
[Stringification of (new ReadableStream()).getReader()]
|
||||
expected: FAIL
|
||||
|
||||
[ReadableStream interface: operation tee()]
|
||||
expected: FAIL
|
||||
|
||||
[Stringification of self.readableStreamDefaultController]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -1928,9 +1859,6 @@
|
|||
[ReadableByteStreamController interface: operation close()]
|
||||
expected: FAIL
|
||||
|
||||
[ReadableStream interface: operation getReader(optional ReadableStreamGetReaderOptions)]
|
||||
expected: FAIL
|
||||
|
||||
[TransformStream interface: existence and properties of interface prototype object]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче