Skip to content
Commit 2135675c authored by Dominic Farolino's avatar Dominic Farolino Committed by Chromium LUCI CQ
Browse files

DOM: Implement the `last()` Observable operator

See https://github.com/WICG/observable/pull/133

. This CL implements the
`last()` operator which returns a Promise that resolves to the last
item that the source Observable emits, and rejects with a RangeError
if the Observable completes prematurely.

For WPTs:
Co-authored-by: default avatar <ben@benlesh.com>

R=dizhangg@chromium.org

Bug: 40282760
Change-Id: Id1ec2af152c288ae81dfe383dfa9a7f166cfb375
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5417373


Reviewed-by: default avatarDi Zhang <dizhangg@chromium.org>
Commit-Queue: Dominic Farolino <dom@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1282037}
parent 2f74a885
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment