You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.bs
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -622,6 +622,8 @@ The <dfn attribute for="LanguageDetector">inputQuota</dfn> getter steps are to r
622
622
623
623
1. If |compositeSignal| is [=AbortSignal/aborted=], then return [=a promise rejected with=] |compositeSignal|'s [=AbortSignal/abort reason=].
624
624
625
+
1. Let |promise| be [=a new promise=] created in [=this=]'s [=relevant realm=].
626
+
625
627
1. Let |abortedDuringOperation| be false.
626
628
627
629
<p class="note">This variable will be written to from the [=event loop=], but read from [=in parallel=].
@@ -630,9 +632,9 @@ The <dfn attribute for="LanguageDetector">inputQuota</dfn> getter steps are to r
630
632
631
633
1. Set |abortedDuringOperation| to true.
632
634
633
-
1. Let |inputQuota| be [=this=]'s [=LanguageDetector/input quota=].
635
+
1. [=Reject=] |promise| with |compositeSignal|'s [=AbortSignal/abort reason=].
634
636
635
-
1. Let |promise| be [=a new promise=] created in [=this=]'s [=relevant realm=].
637
+
1. Let |inputQuota| be [=this=]'s [=LanguageDetector/input quota=].
636
638
637
639
1. [=In parallel=]:
638
640
@@ -644,7 +646,7 @@ The <dfn attribute for="LanguageDetector">inputQuota</dfn> getter steps are to r
644
646
645
647
1. [=Queue a global task=] on the [=AI task source=] given |global| to perform the following steps:
646
648
647
-
1. If |abortedDuringOperation| is true, then [=reject=] |promise| with |compositeSignal|'s [=AbortSignal/abort reason=].
649
+
1. If |abortedDuringOperation| is true, then abort these steps.
648
650
649
651
1. Otherwise, if |result| is an [=error information=], then [=reject=] |promise| with the result of [=converting error information into an exception object=] given |result|.
0 commit comments