Skip to content

Commit 390eee7

Browse files
committed
Rename closing steps to dispose steps
1 parent 243d377 commit 390eee7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

index.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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>
@@ -6423,7 +6423,7 @@ for="value-with-size">value</dfn> and <dfn for="value-with-size">size</dfn>.
64236423
1. If |container| has an \[[isOwning]] internal slot whose value is true, perform the following steps until |container|.\[[queue]]
64246424
is [=list/is empty|empty=]:
64256425
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|.
64276427
1. Set |container|.\[[queue]] to a new empty [=list=].
64286428
1. Set |container|.\[[queueTotalSize]] to 0.
64296429
</div>

reference-implementation/lib/abstract-ops/queue-with-sizes.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

4444
exports.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
}

0 commit comments

Comments
 (0)