-
Notifications
You must be signed in to change notification settings - Fork 15
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
Spec the reduce()
operator
#171
Conversation
This CL specs the `reduce()` operator to have the same semantics as the `reduce()` operator in TC39's iterator helpers proposal. See WICG/observable#171. R=jarhar Bug: 40282760 Change-Id: I564b8cf0cf1fef81c0ee42808fad0a5aaddd2fc2
This CL specs the `reduce()` operator to have the same semantics as the `reduce()` operator in TC39's iterator helpers proposal. See WICG/observable#171. R=jarhar Bug: 40282760 Change-Id: I564b8cf0cf1fef81c0ee42808fad0a5aaddd2fc2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5817639 Commit-Queue: Dominic Farolino <[email protected]> Reviewed-by: Joey Arhar <[email protected]> Cr-Commit-Position: refs/heads/main@{#1348159}
This CL specs the `reduce()` operator to have the same semantics as the `reduce()` operator in TC39's iterator helpers proposal. See WICG/observable#171. R=jarhar Bug: 40282760 Change-Id: I564b8cf0cf1fef81c0ee42808fad0a5aaddd2fc2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5817639 Commit-Queue: Dominic Farolino <[email protected]> Reviewed-by: Joey Arhar <[email protected]> Cr-Commit-Position: refs/heads/main@{#1348159}
This CL specs the `reduce()` operator to have the same semantics as the `reduce()` operator in TC39's iterator helpers proposal. See WICG/observable#171. R=jarhar Bug: 40282760 Change-Id: I564b8cf0cf1fef81c0ee42808fad0a5aaddd2fc2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5817639 Commit-Queue: Dominic Farolino <[email protected]> Reviewed-by: Joey Arhar <[email protected]> Cr-Commit-Position: refs/heads/main@{#1348159}
… operator, a=testonly Automatic update from web-platform-tests DOM: Implement the `Observable#reduce()` operator This CL specs the `reduce()` operator to have the same semantics as the `reduce()` operator in TC39's iterator helpers proposal. See WICG/observable#171. R=jarhar Bug: 40282760 Change-Id: I564b8cf0cf1fef81c0ee42808fad0a5aaddd2fc2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5817639 Commit-Queue: Dominic Farolino <[email protected]> Reviewed-by: Joey Arhar <[email protected]> Cr-Commit-Position: refs/heads/main@{#1348159} -- wpt-commits: 2a7b7ed6c088ae592ea3a1aa4437728596648cb8 wpt-pr: 47844
… operator, a=testonly Automatic update from web-platform-tests DOM: Implement the `Observable#reduce()` operator This CL specs the `reduce()` operator to have the same semantics as the `reduce()` operator in TC39's iterator helpers proposal. See WICG/observable#171. R=jarhar Bug: 40282760 Change-Id: I564b8cf0cf1fef81c0ee42808fad0a5aaddd2fc2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5817639 Commit-Queue: Dominic Farolino <[email protected]> Reviewed-by: Joey Arhar <[email protected]> Cr-Commit-Position: refs/heads/main@{#1348159} -- wpt-commits: 2a7b7ed6c088ae592ea3a1aa4437728596648cb8 wpt-pr: 47844
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. As discussed offline, there's the obvious issue that there's not an analog for observable.reduce(fn)
that takes a cancellation, because of the argument order: observable.reduce(fn, undefined, { signal })
. But that doesn't seem like a big deal. If it ever IS a big deal, there could be an option added to ignore the initialValue, I suppose. But that's one of those "why is this there?" sort of things. :)
… operator, a=testonly Automatic update from web-platform-tests DOM: Implement the `Observable#reduce()` operator This CL specs the `reduce()` operator to have the same semantics as the `reduce()` operator in TC39's iterator helpers proposal. See WICG/observable#171. R=jarhar Bug: 40282760 Change-Id: I564b8cf0cf1fef81c0ee42808fad0a5aaddd2fc2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5817639 Commit-Queue: Dominic Farolino <domchromium.org> Reviewed-by: Joey Arhar <jarharchromium.org> Cr-Commit-Position: refs/heads/main{#1348159} -- wpt-commits: 2a7b7ed6c088ae592ea3a1aa4437728596648cb8 wpt-pr: 47844 UltraBlame original commit: a0a2d5d15343b7dd8ba7b31bd8b0114df5e869a1
… operator, a=testonly Automatic update from web-platform-tests DOM: Implement the `Observable#reduce()` operator This CL specs the `reduce()` operator to have the same semantics as the `reduce()` operator in TC39's iterator helpers proposal. See WICG/observable#171. R=jarhar Bug: 40282760 Change-Id: I564b8cf0cf1fef81c0ee42808fad0a5aaddd2fc2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5817639 Commit-Queue: Dominic Farolino <domchromium.org> Reviewed-by: Joey Arhar <jarharchromium.org> Cr-Commit-Position: refs/heads/main{#1348159} -- wpt-commits: 2a7b7ed6c088ae592ea3a1aa4437728596648cb8 wpt-pr: 47844 UltraBlame original commit: a0a2d5d15343b7dd8ba7b31bd8b0114df5e869a1
… operator, a=testonly Automatic update from web-platform-tests DOM: Implement the `Observable#reduce()` operator This CL specs the `reduce()` operator to have the same semantics as the `reduce()` operator in TC39's iterator helpers proposal. See WICG/observable#171. R=jarhar Bug: 40282760 Change-Id: I564b8cf0cf1fef81c0ee42808fad0a5aaddd2fc2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5817639 Commit-Queue: Dominic Farolino <[email protected]> Reviewed-by: Joey Arhar <[email protected]> Cr-Commit-Position: refs/heads/main@{#1348159} -- wpt-commits: 2a7b7ed6c088ae592ea3a1aa4437728596648cb8 wpt-pr: 47844
This specs the
reduce()
operator discussed in #126. Tests will be upstreamed in https://chromium-review.googlesource.com/c/chromium/src/+/5817639. That should leave onlycatch()
andfinally()
operators left.Preview | Diff