Skip to content

Commit f75805d

Browse files
authored
README.md: bug in Signal.subtle.Watcher.prototype.watch pseudocode
Signal.subtle.Watcher.prototype.watch step 4.v should restore frozen to `false` but it was written as `true`
1 parent acd4093 commit f75805d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ With [AsyncContext](https://github.com/tc39/proposal-async-context), the callbac
608608
1. If this was the first sink, then recurse up to sources to add that signal as a sink.
609609
1. Set `frozen` to true.
610610
1. Call the `watched` callback if it exists.
611-
1. Restore `frozen` to true.
611+
1. Restore `frozen` to false.
612612
1. If the Signal's `state` is `~waiting~`, then set it to `~watching~`.
613613
614614
#### Method: `Signal.subtle.Watcher.prototype.unwatch(...signals)`

0 commit comments

Comments
 (0)