-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specify Body locking with ExclusiveStreamReader. #21
Conversation
@tyoshino Can you take a look at this PR? |
Each [chunk] (https://streams.spec.whatwg.org/#model) in an associated readable stream must be an ArrayBuffer. | ||
|
||
The body attribute's getter must return the associated readable stream. | ||
The __bodyUsed__ attribute's getter must return true if one of the following meets and false otherwise. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
meet -> is met
or
is satisfied
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
9166fb4
to
55d1154
Compare
d61d9a4
to
8992cf2
Compare
@tyoshino, I updated the PR to reflect recent ReadablStream API changes. PTAL. |
1. Return _stream_. | ||
|
||
To construct a fixed ReadableStream with given _bytes_, run these steps. | ||
To construct a fixed ReadableByteStream with given _chunks_, run these steps. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about emphasizing the term we're defining here using bold?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
ebd35e5
to
fe41eb9
Compare
1. A new step is added after Step 21. | ||
- Otherwise, set _r_'s readable stream to the result of constructing a fixed ReadableStream with empty bytes. Rethrow any exceptions. | ||
1. Step 2 is modified as follows. | ||
- If _input_ is a Request object and input's body is non-null, run these substeps: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
input
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
ba3ce38
to
a7dab8c
Compare
lgtm a7dab8c |
Thanks! |
This change also reflects recent Streams API changes.
a7dab8c
to
af2a0a0
Compare
Use 'passed flag' instead of 'used flag' as discussed
at w3c/ServiceWorker#452.