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" };
654654 <p> Can be set to "<dfn enum-value for="ReadableStreamType">owning</dfn> " to signal that the
655655 constructed {{ReadableStream}} will own chunks (via transfer or serialization) before enqueuing them.
656656 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
658658 enqueued chunks are dequeued without being provided to the application, for instance when
659659 a {{ReadableStream}} is errored.
660660 </p>
@@ -6425,7 +6425,7 @@ for="value-with-size">value</dfn> and <dfn for="value-with-size">size</dfn>.
64256425 1. If |container| has an \[[isOwning]] internal slot whose value is true, perform the following steps until |container|.\[[queue]]
64266426 is [=list/is empty|empty=] :
64276427 1. Let |chunk| be ! [$DequeueValue$] ([=this=] ).
6428- 1. If |chunk| has [=closing steps=] , perform the [=closing steps=] given |chunk|.
6428+ 1. If |chunk| has [=dispose steps=] , perform the [=dispose steps=] given |chunk|.
64296429 1. Set |container|.\[[queue]] to a new empty [=list=] .
64306430 1. Set |container|.\[[queueTotalSize]] to 0.
64316431</div>
Original file line number Diff line number Diff line change @@ -39,17 +39,17 @@ exports.PeekQueueValue = container => {
3939 return pair . value ;
4040} ;
4141
42- const closingStepsSymbol = Symbol ( 'closing -steps' ) ;
42+ const disposeStepsSymbol = Symbol ( 'dispose -steps' ) ;
4343
4444exports . ResetQueue = container => {
4545 assert ( '_queue' in container && '_queueTotalSize' in container ) ;
4646
4747 if ( container . _isOwning ) {
4848 while ( container . _queue . length > 0 ) {
4949 const value = exports . DequeueValue ( container ) ;
50- if ( typeof value [ closingStepsSymbol ] === 'function' ) {
50+ if ( typeof value [ disposeStepsSymbol ] === 'function' ) {
5151 try {
52- value [ closingStepsSymbol ] ( ) ;
52+ value [ disposeStepsSymbol ] ( ) ;
5353 } catch ( closeException ) {
5454 // Nothing to do.
5555 }
You can’t perform that action at this time.
0 commit comments