-
Notifications
You must be signed in to change notification settings - Fork 166
Editorial: add cross-links to internal slots #1050
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
Merged
Merged
Changes from all commits
Commits
Show all changes
77 commits
Select commit
Hold shift + click to select a range
d485c12
Add definitions for ReadableStream internal slots
MattiasBuelens b3f8ed4
Link ReadableStream.[[disturbed]]
MattiasBuelens cefdca2
Link ReadableStream.[[reader]]
MattiasBuelens ec49278
Link ReadableStream.[[controller]]
MattiasBuelens 93a3b97
Link ReadableStream.[[state]]
MattiasBuelens eb74994
Link ReadableStream.[[storedError]]
MattiasBuelens b35905b
Add definitions for reader internal slots
MattiasBuelens 67a08f9
Link reader slots
MattiasBuelens e0ae0bc
Add ReadableStreamGenericReader interface mixin
MattiasBuelens 401146f
Address review comments
MattiasBuelens d885b60
Use closed and cancel() definitions from generic reader
MattiasBuelens c4cba1a
Replace "interface mixin" with "mixin" in prose
MattiasBuelens 2eb10dc
Add definitions for readable stream controller internal slots
MattiasBuelens 74c8073
Link controller.[[cancelAlgorithm]]
MattiasBuelens aaea5fc
Link controller.[[closeRequested]]
MattiasBuelens ac340de
Link controller.[[pullAgain]]
MattiasBuelens e129a13
Link controller.[[pullAlgorithm]]
MattiasBuelens 99f9ff2
Link controller.[[pulling]]
MattiasBuelens 2d1354b
Link controller.[[queue]]
MattiasBuelens 72e1bdb
Link controller.[[queueTotalSize]]
MattiasBuelens 160c4ed
Link controller.[[started]]
MattiasBuelens 4bddc7e
Link controller.[[strategyHWM]]
MattiasBuelens d8c1a2e
Link controller.[[strategySizeAlgorithm]]
MattiasBuelens d695958
Link controller.[[stream]]
MattiasBuelens 12bd4c5
Link controller.[[autoAllocateChunkSize]]
MattiasBuelens 7ba7477
Link controller.[[byobRequest]]
MattiasBuelens 66d7424
Link controller.[[pendingPullIntos]]
MattiasBuelens 9514168
Add definitions for ReadableStreamBYOBRequest internal slots
MattiasBuelens fa80fdf
Link ReadableStreamBYOBRequest.[[controller]]
MattiasBuelens 8394ae5
Link ReadableStreamBYOBRequest.[[view]]
MattiasBuelens 34c6738
Fix incorrect reference in note below ReadableStreamClose
MattiasBuelens 1c96cd2
Add some more links
MattiasBuelens 1fe69a7
Add ReadableStreamGenericReader IDL to reference implementation
MattiasBuelens 77cde48
Remove redundant note below ReadableStreamClose
MattiasBuelens 0ea00c0
Add definitions for WritableStream internal slots
MattiasBuelens 6647d40
Link WritableStream.[[backpressure]]
MattiasBuelens 24c0af1
Link WritableStream.[[closeRequest]]
MattiasBuelens ddd127c
Link WritableStream.[[controller]]
MattiasBuelens b6734d4
Link WritableStream.[[inFlightWriteRequest]]
MattiasBuelens a73040f
Link WritableStream.[[inFlightCloseRequest]]
MattiasBuelens 6f7ddd7
Link WritableStream.[[pendingAbortRequest]]
MattiasBuelens adb4fb3
Link WritableStream.[[state]]
MattiasBuelens 66d8ee2
Link WritableStream.[[storedError]]
MattiasBuelens fb11636
Link WritableStream.[[writer]]
MattiasBuelens 0263702
Link WritableStream.[[writeRequests]]
MattiasBuelens 71f2c76
Add definitions for WritableStreamDefaultWriter internal slots
MattiasBuelens c22418f
Link WritableStreamDefaultWriter.[[closedPromise]]
MattiasBuelens 81909a7
Link WritableStreamDefaultWriter.[[readyPromise]]
MattiasBuelens 144024c
Link WritableStreamDefaultWriter.[[stream]]
MattiasBuelens 5e1d8a9
Add definitions for WritableStreamDefaultController internal slots
MattiasBuelens eac52c9
Link WritableStreamDefaultController.[[abortAlgorithm]]
MattiasBuelens cc46a1a
Link WritableStreamDefaultController.[[closeAlgorithm]]
MattiasBuelens 5c3d979
Link WritableStreamDefaultController.[[queue]]
MattiasBuelens e96e3d1
Link WritableStreamDefaultController.[[queueTotalSize]]
MattiasBuelens 8780273
Link WritableStreamDefaultController.[[started]]
MattiasBuelens 09a86ca
Link WritableStreamDefaultController.[[strategyHWM]]
MattiasBuelens 2cb3415
Link WritableStreamDefaultController.[[strategySizeAlgorithm]]
MattiasBuelens 67098f0
Link WritableStreamDefaultController.[[stream]]
MattiasBuelens 1fb428e
Link WritableStreamDefaultController.[[writeAlgorithm]]
MattiasBuelens b752d84
Add definitions for TransformStream internal slots
MattiasBuelens 6652357
Link TransformStream.[[backpressure]]
MattiasBuelens db89c7f
Link TransformStream.[[backpressureChangePromise]]
MattiasBuelens 16d45ba
Link TransformStream.[[controller]]
MattiasBuelens 21c4cb9
Link TransformStream.[[readable]]
MattiasBuelens cfaaab1
Link TransformStream.[[writable]]
MattiasBuelens ca8dcd5
Add definitions for TransformStreamDefaultController internal slots
MattiasBuelens 01e48e9
Link TransformStreamDefaultController.[[flushAlgorithm]]
MattiasBuelens abc59fd
Link TransformStreamDefaultController.[[stream]]
MattiasBuelens 4a9986f
Link TransformStreamDefaultController.[[transformAlgorithm]]
MattiasBuelens 30ce26b
Add definition for ByteLengthQueuingStrategy internal slot
MattiasBuelens 984921e
Link ByteLengthQueuingStrategy.[[highWaterMark]]
MattiasBuelens dc7a247
Add definition for CountQueuingStrategy internal slot
MattiasBuelens df15f5f
Link CountQueuingStrategy.[[highWaterMark]]
MattiasBuelens 0959a09
Implement ReadableStreamGenericReader mixin
MattiasBuelens 861215a
Wrap long lines
MattiasBuelens 5abced8
More line-wrapping (including some preexisting issues)
domenic 2ace378
Apply suggestions from code review
MattiasBuelens File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
reference-implementation/lib/ReadableStreamGenericReader-impl.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
'use strict'; | ||
|
||
const { promiseRejectedWith } = require('./helpers/webidl.js'); | ||
const aos = require('./abstract-ops/readable-streams.js'); | ||
|
||
exports.implementation = class ReadableStreamGenericReaderImpl { | ||
get closed() { | ||
return this._closedPromise; | ||
} | ||
|
||
cancel(reason) { | ||
if (this._stream === undefined) { | ||
return promiseRejectedWith(readerLockException('cancel')); | ||
} | ||
|
||
return aos.ReadableStreamReaderGenericCancel(this, reason); | ||
} | ||
}; | ||
|
||
function readerLockException(name) { | ||
return new TypeError('Cannot ' + name + ' a stream using a released reader'); | ||
} |
5 changes: 5 additions & 0 deletions
5
reference-implementation/lib/ReadableStreamGenericReader.webidl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
interface mixin ReadableStreamGenericReader { | ||
readonly attribute Promise<void> closed; | ||
|
||
Promise<void> cancel(optional any reason); | ||
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Shamelessly stolen from jsdom. 😁