File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
reference-implementation/lib/abstract-ops Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -654,7 +654,7 @@ enum ReadableStreamType { "bytes", "owning" };
654
654
<p> Can be set to "<dfn enum-value for="ReadableStreamType">owning</dfn> " to signal that the
655
655
constructed {{ReadableStream}} will own chunks (via transfer or serialization) before enqueuing them.
656
656
This ensures that enqueued chunks are not mutable by the source.
657
- Transferred or serialized chunks may have <dfn>closing steps</dfn> which are executed if
657
+ Transferred or serialized chunks may have <dfn>dispose steps</dfn> which are executed if
658
658
enqueued chunks are dequeued without being provided to the application, for instance when
659
659
a {{ReadableStream}} is errored.
660
660
</p>
@@ -6423,7 +6423,7 @@ for="value-with-size">value</dfn> and <dfn for="value-with-size">size</dfn>.
6423
6423
1. If |container| has an \[[isOwning]] internal slot whose value is true, perform the following steps until |container|.\[[queue]]
6424
6424
is [=list/is empty|empty=] :
6425
6425
1. Let |chunk| be ! [$DequeueValue$] ([=this=] ).
6426
- 1. If |chunk| has [=closing steps=] , perform the [=closing steps=] given |chunk|.
6426
+ 1. If |chunk| has [=dispose steps=] , perform the [=dispose steps=] given |chunk|.
6427
6427
1. Set |container|.\[[queue]] to a new empty [=list=] .
6428
6428
1. Set |container|.\[[queueTotalSize]] to 0.
6429
6429
</div>
Original file line number Diff line number Diff line change @@ -39,17 +39,17 @@ exports.PeekQueueValue = container => {
39
39
return pair . value ;
40
40
} ;
41
41
42
- const closingStepsSymbol = Symbol ( 'closing -steps' ) ;
42
+ const disposeStepsSymbol = Symbol ( 'dispose -steps' ) ;
43
43
44
44
exports . ResetQueue = container => {
45
45
assert ( '_queue' in container && '_queueTotalSize' in container ) ;
46
46
47
47
if ( container . _isOwning ) {
48
48
while ( container . _queue . length > 0 ) {
49
49
const value = exports . DequeueValue ( container ) ;
50
- if ( typeof value [ closingStepsSymbol ] === 'function' ) {
50
+ if ( typeof value [ disposeStepsSymbol ] === 'function' ) {
51
51
try {
52
- value [ closingStepsSymbol ] ( ) ;
52
+ value [ disposeStepsSymbol ] ( ) ;
53
53
} catch ( closeException ) {
54
54
// Nothing to do.
55
55
}
You can’t perform that action at this time.
0 commit comments