Open bakulf opened 5 years ago
In which way is this observable?
It's not, apart from extensions perhaps. Perhaps this should say "implementation-defined realm", but perhaps it'd fall out of fixing https://github.com/heycam/webidl/issues/135?
(Also relates to #730 somewhat I suppose for the creation of the empty stream.)
It's not, apart from extensions perhaps.
The Promise involved is completely unobservable?
The promise returned by the undefined "transforming" operation (hopefully IDL integrates that part of the promises guide at some point) would be exposed. Presumably that would use the global of this per yet-to-be-defined IDL shorthands.
Which "this", in this case?
Of the object on which the method is declared that ends up returning the promise. As the "consume body" algorithm is some internal algorithm of that object, the this object is somewhat obvious, but perhaps we'd need to make this explicit anyway somehow depending on how promises and object creation get formalized in IDL.
"Let reader be the result of getting a reader from stream. If that threw an exception, return a new promise rejected with that exception."
In which global should this reader belong to? And what about the 'promise' created by the reader when retrieving data from the ReadableStream? I guess it's the same global of the reader.