Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Watcher" state machine is undocumented #204

Closed
prophile opened this issue Apr 29, 2024 · 0 comments · Fixed by #217
Closed

"Watcher" state machine is undocumented #204

prophile opened this issue Apr 29, 2024 · 0 comments · Fixed by #217

Comments

@prophile
Copy link
Contributor

The specification spells out in "Signal.subtle.Watcher internal slots":

state: May be ~watching~, ~pending~ or ~waiting~

The semantics of these are never spelled out, nor are most of the transitions. In "Constructor: new Signal.subtle.Watcher(callback)" we have:

  1. state is set to ~waiting~

And we have transitions from ~pending~ to ~watching~ spelled out in phases 4 and 5 of "Method: Signal.State.prototype.set(newValue)". But there's no reference to any other state changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant