diff --git a/packages/playwright-core/src/client/errors.ts b/packages/playwright-core/src/client/errors.ts index 4d8a08c4ac..51555202e5 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'; } }