From 301481f8a94dddc9862cb26ea7eba95afbe230db Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Fri, 6 Jun 2025 10:11:45 +0200 Subject: [PATCH] chore(client): remove unneeded _wrapApiCall(internal) (#36224) --- packages/playwright-core/src/client/page.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/playwright-core/src/client/page.ts b/packages/playwright-core/src/client/page.ts index 6b86acdf73..26a925f680 100644 --- a/packages/playwright-core/src/client/page.ts +++ b/packages/playwright-core/src/client/page.ts @@ -203,7 +203,7 @@ export class Page extends ChannelOwner 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 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(() => {}); } }