Skip to content

Commit

Permalink
Throw error if no listener is attached #121
Browse files Browse the repository at this point in the history
  • Loading branch information
kay-is authored and staltz committed Nov 25, 2016
1 parent 7327a9d commit f7e598f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1237,6 +1237,7 @@ export class Stream<T> implements InternalListener<T> {
const b = copy(a);
for (let i = 0; i < L; i++) b[i]._e(err);
}
if (!this._d && L == 0) throw this._err;
}

_c(): void {
Expand Down

0 comments on commit f7e598f

Please sign in to comment.