Skip to content

Commit

Permalink
fix: Maximum call stack size exceeded on whatwg interface
Browse files Browse the repository at this point in the history
juanjoDiaz committed May 30, 2023
1 parent 20ef8ff commit ea44d4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/whatwg/src/TransformStream.ts
Original file line number Diff line number Diff line change
@@ -102,14 +102,14 @@ export default class JSON2CSVWHATWGTransformStream<
}

public dispatchEvent(event: Event): boolean {
return this.dispatchEvent(event);
return this.delegate?.dispatchEvent(event) ?? false;
}

public removeEventListener(
type: string,
callback: EventListenerOrEventListenerObject | null,
options?: boolean | EventListenerOptions | undefined
): void {
this.removeEventListener(type, callback, options);
this.delegate?.removeEventListener(type, callback, options);
}
}

0 comments on commit ea44d4e

Please sign in to comment.