Skip to content

Commit

Permalink
refactor(csp): fix up TS4.4 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Sep 3, 2021
1 parent ba616db commit 993a458
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/csp/src/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ export class Channel<T> implements IReadWriteableChannel<T> {
this.state = State.CLOSED;
}
} catch (e) {
this.onerror(e, this, value);
this.onerror(<Error>e, this, value);
}
}
: () => value,
Expand Down Expand Up @@ -593,7 +593,7 @@ export class Channel<T> implements IReadWriteableChannel<T> {
// finalize/complete transducer
this.tx[1](this.txbuf);
} catch (e) {
this.onerror(e, this);
this.onerror(<Error>e, this);
}
}
if (!this.isReadable()) {
Expand Down

0 comments on commit 993a458

Please sign in to comment.