diff --git a/packages/compiler/shims/undici/core/dispatcher.ts b/packages/compiler/shims/undici/core/dispatcher.ts index cd195b5da..d9d35c33f 100644 --- a/packages/compiler/shims/undici/core/dispatcher.ts +++ b/packages/compiler/shims/undici/core/dispatcher.ts @@ -38,6 +38,12 @@ export interface ResponseData { const defaultProfile: Profile = { major: 7 }; export class Dispatcher extends EventEmitter { + // An explicit constructor: the implicit one forwards its arguments to + // EventEmitter's options-taking constructor, which stays a runtime fence. + constructor() { + super(); + } + dispatch(_options: DispatchOptions, _handler: DispatchHandlers): boolean { throw new Error("not implemented"); }