@@ -205,6 +205,16 @@ The <dfn attribute for=Subscriber><code>signal</code></dfn> getter steps are to
205
205
[=Subscriber/next algorithm=] given |value|.
206
206
207
207
[=Assert=] : No <a spec=webidl lt="an exception was thrown">exception was thrown</a> .
208
+
209
+ <div class=note>
210
+ <p> Note: No exception can be thrown here because in the case where [=Subscriber/next
211
+ algorithm=] is just a wrapper around a script-provided callback, the <a
212
+ href=#process-observer> process observer</a> steps take care to wrap these callbacks in
213
+ logic that, when invoking them, catches any exceptions, and reports them to the global.</p>
214
+
215
+ <p> When the [=Subscriber/next algorithm=] is a spec algorithm, those steps take care to not
216
+ throw any exceptions outside of itself, to appease this assert.</p>
217
+ </div>
208
218
</div>
209
219
210
220
<div algorithm>
@@ -223,6 +233,8 @@ The <dfn attribute for=Subscriber><code>signal</code></dfn> getter steps are to
223
233
224
234
[=Assert=] : No <a spec=webidl lt="an exception was thrown">exception was thrown</a> .
225
235
236
+ Note: See the documentation in {{Subscriber/next()}} for details on why this is true.
237
+
226
238
1. Otherwise (i.e., when |error algorithm| is null), [=report the exception=] |error|.
227
239
</div>
228
240
@@ -241,6 +253,8 @@ The <dfn attribute for=Subscriber><code>signal</code></dfn> getter steps are to
241
253
1. If |complete algorithm| is not null, then run |complete algorithm|.
242
254
243
255
[=Assert=] : No <a spec=webidl lt="an exception was thrown">exception was thrown</a> .
256
+
257
+ Note: See the documentation in {{Subscriber/next()}} for details on why this is true.
244
258
</div>
245
259
246
260
<div algorithm>
@@ -451,7 +465,7 @@ An <dfn>internal observer</dfn> is a [=struct=] with the following [=struct/item
451
465
1. Let |internal observer| be a new [=internal observer=] .
452
466
453
467
1. Process |observer| as follows:
454
- <ol>
468
+ <ol id=process-observer >
455
469
<li>
456
470
<dl class="switch">
457
471
<dt> If |observer| is a {{SubscriptionObserverCallback}} </dt>
0 commit comments