diff --git a/packages/playwright-core/src/client/errors.ts b/packages/playwright-core/src/client/errors.ts index 4d8a08c4ac65b..51555202e5b84 100644 --- a/packages/playwright-core/src/client/errors.ts +++ b/packages/playwright-core/src/client/errors.ts @@ -28,7 +28,6 @@ export class TimeoutError extends Error { export class TargetClosedError extends Error { constructor(cause?: string) { super(cause || 'Target page, context or browser has been closed'); - this.name = 'TargetClosedError'; } }