Skip to content

Commit 1558b43

Browse files
bowennibenlesh
authored andcommitted
fix(fromEvent): Defines toString to fix Closure compilations (#3417)
1 parent 616710a commit 1558b43

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/internal/observable/fromEvent.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { Observable } from '../Observable';
22
import { isFunction } from '../util/isFunction';
33
import { Subscriber } from '../Subscriber';
44

5+
const toString: Function = Object.prototype.toString;
6+
57
export type NodeStyleEventEmitter = {
68
addListener: (eventName: string, handler: Function) => void;
79
removeListener: (eventName: string, handler: Function) => void;

0 commit comments

Comments
 (0)