Skip to content

Commit 20707a1

Browse files
committed
fix(notifier): make the Updater a Far object
1 parent 7ca2ffb commit 20707a1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/notifier/src/notifier.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export const makeNotifierKit = (...args) => {
8585
...baseNotifier,
8686
});
8787

88-
const updater = harden({
88+
const updater = Far('updater', {
8989
updateState(state) {
9090
if (final()) {
9191
throw new Error('Cannot update state after termination.');
@@ -155,7 +155,6 @@ export const makeNotifierKit = (...args) => {
155155
* @returns {Notifier<T>}
156156
*/
157157
export const makeNotifierFromAsyncIterable = asyncIterableP => {
158-
/** @type {ERef<AsyncIterator<T>>} */
159158
const iteratorP = E(asyncIterableP)[Symbol.asyncIterator]();
160159

161160
/** @type {Promise<UpdateRecord<T>>|undefined} */

0 commit comments

Comments
 (0)