tc39 / proposal-signals

A proposal to add signals to JavaScript.
MIT License
2.87k stars 54 forks source link

Details omitted in `Watcher.getPending()` #207

Open prophile opened 2 weeks ago

prophile commented 2 weeks ago

The specification for Signal.subtle.Watcher.prototype.getPending() specifies:

Return an Array containing the subset of signals which are in the state dirty or pending.

This should probably:

  1. Read ~dirty~ and ~pending~,
  2. Specify the actual order these will be returned explicitly,
  3. Say something about callers mutating the return value, even if it's that the behaviour is explicitly undefined.