You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Providing a virtual watcher to watchPromise is asserted to be supported but will in fact fail because storing a virtual reference in a durable collection will throw.
A virtual watcher should indeed be supported, but the collection used should be a virtual one, recreated for each incarnation.
Additional context
The watcher wouldn't be invoked in future incarnations, but that is not worse than a heap E.when that this is substituting. With a virtual watcher the program could avoid keeping the watcher in the heap.
Describe the bug
Providing a virtual
watcher
towatchPromise
is asserted to be supported but will in fact fail because storing a virtual reference in a durable collection will throw.agoric-sdk/packages/swingset-liveslots/src/watchedPromises.js
Lines 202 to 205 in 459998d
agoric-sdk/packages/swingset-liveslots/src/watchedPromises.js
Line 225 in 459998d
agoric-sdk/packages/swingset-liveslots/src/watchedPromises.js
Line 83 in 459998d
To Reproduce
No test coverage, derived from auditing the code
Expected behavior
A virtual watcher should indeed be supported, but the collection used should be a virtual one, recreated for each incarnation.
Additional context
The watcher wouldn't be invoked in future incarnations, but that is not worse than a heap
E.when
that this is substituting. With a virtual watcher the program could avoid keeping the watcher in the heap.See #9321 (comment)_
The text was updated successfully, but these errors were encountered: