Skip to content

Commit f603f2d

Browse files
yjp20RobertCraigie
authored andcommitted
Bind this
1 parent beddd34 commit f603f2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/EventStream.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class EventStream<EventTypes extends BaseEvents> {
4646
executor().then(() => {
4747
this._emitFinal();
4848
this._emit('end');
49-
}, this.#handleError);
49+
}, this.#handleError.bind(this));
5050
}, 0);
5151
}
5252

0 commit comments

Comments
 (0)