Skip to content

Commit

Permalink
Editorial: Update use of WebIDL "invoke a callback function" (#1320)
Browse files Browse the repository at this point in the history
The only use which is not promise-returning is the "start" algorithm,
which should rethrow the exception (so it can in turn be rethrown from
the ReadableStream constructor.

Part of whatwg/webidl#1425.
  • Loading branch information
jeremyroman authored Aug 5, 2024
1 parent f63ec41 commit 95a5adf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -5251,8 +5251,8 @@ The following abstract operations support the implementation of the
1. Let |abortAlgorithm| be an algorithm that returns [=a promise resolved with=] undefined.
1. If |underlyingSinkDict|["{{UnderlyingSink/start}}"] [=map/exists=], then set |startAlgorithm| to
an algorithm which returns the result of [=invoking=]
|underlyingSinkDict|["{{UnderlyingSink/start}}"] with argument list « |controller| »
and [=callback this value=] |underlyingSink|.
|underlyingSinkDict|["{{UnderlyingSink/start}}"] with argument list « |controller| »,
exception behavior "<code>rethrow</code>", and [=callback this value=] |underlyingSink|.
1. If |underlyingSinkDict|["{{UnderlyingSink/write}}"] [=map/exists=], then set |writeAlgorithm| to
an algorithm which takes an argument |chunk| and returns the result of [=invoking=]
|underlyingSinkDict|["{{UnderlyingSink/write}}"] with argument list «&nbsp;|chunk|,
Expand Down

0 comments on commit 95a5adf

Please sign in to comment.