Skip to content

Commit

Permalink
chore(observable#last): reject with RangeError with no last value
Browse files Browse the repository at this point in the history
  • Loading branch information
maraisr committed Oct 20, 2024
1 parent 3accb9c commit 2024c61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1243,7 +1243,7 @@ For now, see [https://github.com/wicg/observable#operators](https://github.com/w
ignore>value</var>.

: [=internal observer/error steps=]
::
::
1. [=Invoke=] |callback| with the passed in <var ignore>error</var>. Let |result| be
the returned value.

Expand Down Expand Up @@ -1572,7 +1572,7 @@ For now, see [https://github.com/wicg/observable#operators](https://github.com/w
: [=internal observer/complete steps=]
:: 1. If |hasLastValue| is true, [=resolve=] |p| with |lastValue|.

1. Otherwise, [=resolve=] |p| with {{undefined}}.
1. Otherwise, [=reject=] |p| with a new {{RangeError}}.

Note: See the note in {{Observable/first()}}.

Expand Down

0 comments on commit 2024c61

Please sign in to comment.