|
Implement author-constructible ReadableStream using V8 extras
This implements the ReadableStream and CountQueuingStrategy classes from the Streams Standard using V8 extras. They are marked experimental. The implementation follows the spec and reference implementation very closely.
The IDL implementation of ReadableStream is no longer exposed to the global scope; it was not usable in any way. But, to avoid any breakage in the interim, we introduce a non-experimental ReadableStreamTempStub.js V8 extra that replaces the IDL implementation with equivalent (non-)functionality.
Further work will be necessary to integrate this implementation with Fetch, replacing Fetch's use of ReadableByteStream, before we can completely remove the existing implementation. The current implementation landscape is explained in the new README.md file in this directory.
The tests are drawn from https://github.com/whatwg/streams/tree/master/reference-implementation/web-platform-tests.
BUG= 503491
R=yhirano@chromium.org,jochen@chromium.org
Committed: https://crrev.com/5ba05470cb4c1faece2db12886b09148ef2456ee
Cr-Commit-Position: refs/heads/master@{#362201}
Total comments: 8
Total comments: 3
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+4934 lines, -31 lines) |
Patch |
|
M |
build/common.gypi
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
build_overrides/v8.gni
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+7 lines, -3 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/http/tests/serviceworker/webexposed/global-interface-listing-service-worker-expected.txt
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/http/tests/streams/README.md
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/http/tests/streams/byte-length-queuing-strategy.js
|
View
|
1
2
3
4
5
6
|
5 chunks |
+21 lines, -9 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/http/tests/streams/count-queuing-strategy.html
|
View
|
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/http/tests/streams/count-queuing-strategy.js
|
View
|
1
2
3
4
5
6
|
1 chunk |
+106 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/http/tests/streams/readable-streams/bad-strategies.html
|
View
|
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/http/tests/streams/readable-streams/bad-strategies.js
|
View
|
1
2
3
4
5
6
|
1 chunk |
+122 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/http/tests/streams/readable-streams/bad-underlying-sources.html
|
View
|
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/http/tests/streams/readable-streams/bad-underlying-sources.js
|
View
|
1
2
3
4
5
6
|
1 chunk |
+383 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/http/tests/streams/readable-streams/brand-checks.html
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/http/tests/streams/readable-streams/brand-checks.js
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
1 chunk |
+151 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/http/tests/streams/readable-streams/cancel.html
|
View
|
1
2
3
4
5
6
|
1 chunk |
+15 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/http/tests/streams/readable-streams/cancel.js
|
View
|
1
2
3
4
5
6
|
1 chunk |
+239 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/http/tests/streams/readable-streams/count-queuing-strategy-integration.html
|
View
|
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/http/tests/streams/readable-streams/count-queuing-strategy-integration.js
|
View
|
1
2
3
4
5
6
|
1 chunk |
+213 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/http/tests/streams/readable-streams/garbage-collection.html
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/http/tests/streams/readable-streams/garbage-collection.js
|
View
|
|
1 chunk |
+75 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/http/tests/streams/readable-streams/general.html
|
View
|
1
2
3
4
5
6
|
1 chunk |
+15 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/http/tests/streams/readable-streams/general.js
|
View
|
1
2
3
4
5
6
|
1 chunk |
+829 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/http/tests/streams/readable-streams/readable-stream-reader.html
|
View
|
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/http/tests/streams/readable-streams/readable-stream-reader.js
|
View
|
1
2
3
4
5
6
7
8
9
10
11
12
|
1 chunk |
+485 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/http/tests/streams/readable-streams/tee.html
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/http/tests/streams/readable-streams/tee.js
|
View
|
1
2
3
4
5
6
|
1 chunk |
+254 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/http/tests/streams/readable-streams/templated.html
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+16 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/http/tests/streams/readable-streams/templated.js
|
View
|
1
2
3
4
5
6
|
1 chunk |
+148 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/http/tests/streams/resources/rs-test-templates.js
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+622 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/http/tests/streams/resources/rs-utils.js
|
View
|
1
2
3
4
5
6
|
1 chunk |
+185 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/http/tests/streams/resources/test-utils.js
|
View
|
1
2
3
4
5
6
10
11
|
1 chunk |
+43 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/webexposed/global-interface-listing-compositor-worker-expected.txt
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/webexposed/global-interface-listing-dedicated-worker-expected.txt
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/webexposed/global-interface-listing-shared-worker-expected.txt
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/core.gypi
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/streams/ByteLengthQueuingStrategy.js
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
A + |
third_party/WebKit/Source/core/streams/CountQueuingStrategy.js
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+8 lines, -4 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/Source/core/streams/README.md
|
View
|
1
2
3
4
5
6
|
1 chunk |
+41 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/streams/ReadableByteStream.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/streams/ReadableStream.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/streams/ReadableStream.idl
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -11 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/Source/core/streams/ReadableStream.js
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+765 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/Source/core/streams/ReadableStreamTempStub.js
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+41 lines, -0 lines |
0 comments
|
Download
|
Total messages: 46 (13 generated)
|