Skip to content

Commit

Permalink
fix: do not produce TargetClosedError: <message> errors
Browse files Browse the repository at this point in the history
  • Loading branch information
dgozman committed Dec 18, 2023
1 parent e2c335a commit 8c6f1a2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/playwright-core/src/client/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
}

Expand Down

0 comments on commit 8c6f1a2

Please sign in to comment.