WICG / scheduling-apis

APIs for scheduling and controlling prioritized tasks.
https://wicg.github.io/scheduling-apis/
Other
908 stars 45 forks source link

yield: Add null check for inherited state in spec #107

Closed shaseley closed 2 weeks ago

shaseley commented 2 weeks ago

"schedule a yield continuation" was not taking into account that the current scheduling state can be null, in which case the priority source and abort source are null, and a non-abortable, user-visible continuation should be scheduled. The latter is handled already by the abort and priority source null checks, but these weren't being initialized to null if the inherited scheduling state is null.

Fixes #106


Preview | Diff