Skip to content

Commit

Permalink
chore(observable#last): reject with RangeError with no last value (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
maraisr authored Oct 23, 2024
1 parent 3accb9c commit d576611
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 d576611

Please sign in to comment.