Skip to content

Commit

Permalink
README.md: bug in Signal.subtle.Watcher.prototype.watch pseudocode
Browse files Browse the repository at this point in the history
Signal.subtle.Watcher.prototype.watch step 4.v should restore frozen to `false` but it was written as `true`
  • Loading branch information
codefrau authored Aug 9, 2024
1 parent acd4093 commit f75805d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ With [AsyncContext](https://github.com/tc39/proposal-async-context), the callbac
1. If this was the first sink, then recurse up to sources to add that signal as a sink.
1. Set `frozen` to true.
1. Call the `watched` callback if it exists.
1. Restore `frozen` to true.
1. Restore `frozen` to false.
1. If the Signal's `state` is `~waiting~`, then set it to `~watching~`.
#### Method: `Signal.subtle.Watcher.prototype.unwatch(...signals)`
Expand Down

0 comments on commit f75805d

Please sign in to comment.