w3c / web-locks

Cross-tab resource coordination API
https://w3c.github.io/web-locks/
Other
124 stars 16 forks source link

`callback` is not defined in "process the lock request queue queue" #69

Closed saschanaz closed 3 years ago

saschanaz commented 3 years ago

https://wicg.github.io/web-locks/#process-the-lock-request-queue

  1. Enqueue the following steps on callback’s relevant settings object's responsible event loop:
    1. Let r be the result of invoking callback with a new Lock object associated with lock as the only argument.
    2. Resolve waiting with r.

But there is no variable named callback in this algorithm. I guess each request needs to store its callback in it.

inexorabletash commented 3 years ago

Yep - likely a refactor didn't capture that.