From 937974505dfe96267ae3b6692566e61b58c956f5 Mon Sep 17 00:00:00 2001 From: reluc Date: Mon, 16 Sep 2024 10:22:45 +0200 Subject: [PATCH 1/3] fix: step 6 in observeProperty method Reverse the logic "active subscription **does exist**" fix #540 --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 0365920a..65ca1e64 100644 --- a/index.html +++ b/index.html @@ -2054,7 +2054,7 @@

The subscribeEvent() method

with a {{TypeError}} and stop.
  • - If |thing|.{{ConsumedThing/[[activeSubscriptions]]}}[|eventName|] does not [=map/exist=], [=reject=] |promise| with a {{NotAllowedError}} and stop. + If |thing|.{{ConsumedThing/[[activeSubscriptions]]}}[|eventName|] does [=map/exist=], [=reject=] |promise| with a {{NotAllowedError}} and stop.
  • Let |subscription| be a new {{Subscription}} object with its internal slots From 36cc7653c71e2001ab0f3755f7db8a8aad5ad15c Mon Sep 17 00:00:00 2001 From: reluc Date: Mon, 16 Sep 2024 10:24:43 +0200 Subject: [PATCH 2/3] fix: step 6 in observeProperty method correctly reference the map/exist method --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 65ca1e64..19f64f8c 100644 --- a/index.html +++ b/index.html @@ -1869,7 +1869,7 @@

    The observeProperty() method

    with a {{TypeError}} and stop.
  • - If |thing|.{{ConsumedThing/[[activeObservations]]}}[|propertyName|] [=map/exists], [=reject=] |promise| with a {{NotAllowedError}} and stop. + If |thing|.{{ConsumedThing/[[activeObservations]]}}[|propertyName|] [=map/exists=], [=reject=] |promise| with a {{NotAllowedError}} and stop.
  • Let |subscription| be a new {{Subscription}} object with its internal slots From d974fbfcf68db134f763b7ba9f6dac2de2e138ba Mon Sep 17 00:00:00 2001 From: Cristiano Aguzzi Date: Mon, 16 Sep 2024 13:49:16 +0200 Subject: [PATCH 3/3] Update index.html Co-authored-by: Jan Romann --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 19f64f8c..1bd1e208 100644 --- a/index.html +++ b/index.html @@ -2054,7 +2054,7 @@

    The subscribeEvent() method

    with a {{TypeError}} and stop.
  • - If |thing|.{{ConsumedThing/[[activeSubscriptions]]}}[|eventName|] does [=map/exist=], [=reject=] |promise| with a {{NotAllowedError}} and stop. + If |thing|.{{ConsumedThing/[[activeSubscriptions]]}}[|eventName|] [=map/exists=], [=reject=] |promise| with a {{NotAllowedError}} and stop.
  • Let |subscription| be a new {{Subscription}} object with its internal slots