Skip to content

Commit 18a32be

Browse files
committed
transfor setter improvements
1 parent dac97d4 commit 18a32be

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

index.bs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -211,18 +211,17 @@ The <dfn attribute for="RTCRtpSender,RTCRtpReceiver">transform</dfn> getter step
211211
1. Return [=this=].`[[transform]]`.
212212

213213
The `transform` setter steps are:
214-
1. Let |rtcObject| be the {{RTCRtpReceiver}} or {{RTCRtpSender}} on which the setter is invoked.
215214
2. Let |transform| be the argument to the setter.
216215
3. Let |checkedTransform| set to |transform| if it is not null or to an [=identity transform stream=] otherwise.
217216
3. Let |reader| be the result of [=ReadableStream/getting a reader=] for |checkedTransform|.`[[readable]]`.
218217
4. Let |writer| be the result of [=WritableStream/getting a writer=] for |checkedTransform|.`[[writable]]`.
219218
5. Initialize |newPipeToController| to a new {{AbortController}}.
220-
6. If |rtcObject|.`[[pipeToController]]` is not null, run the following steps:
221-
1. [=AbortSignal/Add=] the [=chain transform algorithm=] to |rtcObject|.`[[pipeToController]]`:
222-
2. [=AbortSignal/signal abort=] |rtcObject|.`[[pipeToController]]`.
219+
6. If [=this=].`[[pipeToController]]` is not null, run the following steps:
220+
1. [=AbortSignal/Add=] the [=chain transform algorithm=] to [=this=].`[[pipeToController]]`.signal.
221+
2. [=AbortSignal/signal abort=] [=this=].`[[pipeToController]]`.signal.
223222
7. Else, run the [=chain transform algorithm=] steps.
224-
8. Set |rtcObject|.`[[pipeToController]]` to |newPipeToController|.
225-
9. Set |rtcObject|.`[[transform]]` to |transform|.
223+
8. Set [=this=].`[[pipeToController]]` to |newPipeToController|.
224+
9. Set [=this=].`[[transform]]` to |transform|.
226225

227226
The <dfn>chain transform algorithm</dfn> steps are defined as:
228227
1. If |newPipeToController|'s [=AbortSignal/aborted flag=] is true, abort these steps.

0 commit comments

Comments
 (0)