chore(client): remove unneeded _wrapApiCall(internal) (#36224)

This commit is contained in:
Simon Knott 2025-06-06 10:11:45 +02:00 committed by GitHub
parent 1870739b28
commit 301481f8a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -203,7 +203,7 @@ export class Page extends ChannelOwner<channels.PageChannel> implements api.Page
this._routes.splice(index, 1);
const handled = await routeHandler.handle(route);
if (!this._routes.length)
this._wrapApiCall(() => this._updateInterceptionPatterns(), { internal: true }).catch(() => {});
this._updateInterceptionPatterns().catch(() => {});
if (handled)
return;
}
@ -398,7 +398,7 @@ export class Page extends ChannelOwner<channels.PageChannel> implements api.Page
} finally {
if (remove)
this._locatorHandlers.delete(uid);
this._wrapApiCall(() => this._channel.resolveLocatorHandlerNoReply({ uid, remove }), { internal: true }).catch(() => {});
this._channel.resolveLocatorHandlerNoReply({ uid, remove }).catch(() => {});
}
}