DescriptionImplement ReadableStream as a V8 extra
Passes all tests at https://streams.spec.whatwg.org/tests/ that don't
depend on other classes (e.g. WritableStream).
Originally a port of the reference implementation at
https://github.com/whatwg/streams/blob/master/reference-implementation/lib/readable-stream.js
but modified for efficiency and information-hiding.
Does not implement pipeTo or pipeThrough since there are no
WritableStreams or TransformStreams yet.
Depends on the following modification to Chromium's build/common.gypi:
@@ -1479,6 +1479,11 @@
# Compile d8 for the host toolset.
'v8_toolset_for_d8': 'host',
+ # Add the streams V8 extension to the snapshot
+ 'v8_extra_library_files': [
+ '../third_party/WebKit/Source/core/streams/ByteLengthQueuingStrategy.js',
+ '../third_party/WebKit/Source/core/streams/CountQueuingStrategy.js',
+ '../third_party/WebKit/Source/core/streams/ReadableStream.js',
+ ],
+
# Use brlapi from brltty for braille display support.
'use_brlapi%': 0,
BUG=
Patch Set 1 #Patch Set 2 : Add queuing strategies #Patch Set 3 : Clarify imports; manually bind Promise static methods #Patch Set 4 : #Patch Set 5 : Complete set of C++ classes, I think. #Patch Set 6 : It mostly compiles now #Patch Set 7 : Update with small fixes/big TODOs after review with jochen. #Patch Set 8 : Use extras exports object. FOrgot some files. #Patch Set 9 : Working a bit on the extras exports stuff #Patch Set 10 : #Patch Set 11 : Actually works! #Patch Set 12 : Cleanups; make controller a member instead of arg # |