Streams API
09/12/2015 youenn/calvaris
Streams API 09/12/2015 youenn/calvaris What is it? Enabling I/O - - PowerPoint PPT Presentation
Streams API 09/12/2015 youenn/calvaris What is it? Enabling I/O processing Read chunks asynchronously Write chunks asynchronously Pipe from a stream to another Automatic transformations Any kind of chunk Strings
09/12/2015 youenn/calvaris
to MSE
like channels and regular HTTP content
ransformStream
pipeThrough, pipeT
ht t pResponseBody. pi peThr
decom pr essor Tr ansf
m ) . pi peThr
i gnor eNonI m ageFi l esT r ansf
m ) . pi peT
m edi aG al l er y) ;
emplates to add further specialization for byte array
global object
and Source/WebCore/bindings/js/WebCoreBuiltins.cpp
counting cycles
and saw some improvements
GlobalObject as user scripts
code
function processValue(promise) {
promise.then(…)
} function processValue(promise) {
promise.@then(…) // ok but it may break
} function processValue(promise) {
@Promise.prototype. @then.@call(…) // ok but so unreadable
}
esting tool to catch these errors
specifjc code