fix: do not produce TargetClosedError: <message> errors (#28704)

This commit is contained in:
Dmitry Gozman 2023-12-18 12:34:43 -08:00 committed by GitHub
parent e2c335a40c
commit 6b178d22e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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';
}
}