@@ -1478,7 +1478,7 @@
The observeProperty() method
1478
1478
Otherwise resolve |promise|.
1479
1479
li >
1480
1480
< li >
1481
- Whenever the underlying platform receives a notification for this
1481
+ Whenever the underlying platform detects a notification for this
1482
1482
subscription with a new < a > Propertya > value |value|,
1483
1483
run the following sub-steps:
1484
1484
< ul >
@@ -1493,15 +1493,19 @@
The observeProperty() method
1493
1493
ul >
1494
1494
li >
1495
1495
< li >
1496
- Whenever the underlying platform receives an error notification for
1497
- this subscription with an |error:Error| , run the following sub-steps:
1496
+ Whenever the underlying platform detects an error for
1497
+ this subscription, run the following sub-steps:
1498
1498
< ul >
1499
1499
< li >
1500
1500
If the error is irrecoverable and stops the subscription, set
1501
1501
|subscription|'s |active| to `false` and suppress further notifications.
1502
1502
li >
1503
1503
< li >
1504
- If |onerror| is a {{Function}}, invoke it with |error|.
1504
+ Let |error| be a new {{NetworkError}} and set its |message|
1505
+ to reflect the underlying error condition.
1506
+ li >
1507
+ < li >
1508
+ If |onerror| is a {{Function}}, invoke it with |error|.
1505
1509
li >
1506
1510
ul >
1507
1511
li >
@@ -1625,7 +1629,7 @@
The subscribeEvent() method
1625
1629
Otherwise resolve |promise|.
1626
1630
li >
1627
1631
< li >
1628
- Whenever the underlying platform receives a notification for this
1632
+ Whenever the underlying platform detects a notification for this
1629
1633
< a > Eventa > subscription, run the following sub-steps:
1630
1634
< ol >
1631
1635
< li >
@@ -1636,13 +1640,17 @@
The subscribeEvent() method
1636
1640
ol >
1637
1641
li >
1638
1642
< li >
1639
- Whenever the underlying platform receives an error notification for
1640
- this subscription with an |error:Error| , run the following sub-steps:
1643
+ Whenever the underlying platform detects an error for
1644
+ this subscription, run the following sub-steps:
1641
1645
< ul >
1642
1646
< li >
1643
1647
If the error is irrecoverable and stops the subscription, set
1644
1648
|subscription|'s |active| to `false` and suppress further notifications.
1645
1649
li >
1650
+ < li >
1651
+ Let |error| be a new {{NetworkError}} and set its |message|
1652
+ to reflect the underlying error condition.
1653
+ li >
1646
1654
< li >
1647
1655
If |onerror| is a {{Function}}, invoke it with |error|.
1648
1656
li >
0 commit comments