From f75805d42c4e0421ece3ee9df9b9a0718d4e0be6 Mon Sep 17 00:00:00 2001 From: Vanessa Freudenberg Date: Fri, 9 Aug 2024 14:44:26 -0700 Subject: [PATCH] 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` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5fa23ac..87d4ea0 100644 --- a/README.md +++ b/README.md @@ -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)`