From 2024c61457f9515dcb2d4133098b227032ca0cdb Mon Sep 17 00:00:00 2001 From: Marais Rossouw Date: Mon, 21 Oct 2024 09:59:09 +1000 Subject: [PATCH] chore(observable#last): reject with RangeError with no last value --- spec.bs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec.bs b/spec.bs index ff0a981..4c0914c 100644 --- a/spec.bs +++ b/spec.bs @@ -1243,7 +1243,7 @@ For now, see [https://github.com/wicg/observable#operators](https://github.com/w ignore>value. : [=internal observer/error steps=] - :: + :: 1. [=Invoke=] |callback| with the passed in error. Let |result| be the returned value. @@ -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()}}.