Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore: remove unused kTestSdkObjects (#31665)
Max Schmitt459b7625654e
diff --git a/packages/playwright-core/src/server/instrumentation.ts b/packages/playwright-core/src/server/instrumentation.tsindex fbaa3345d6..b4628ac904 100644--- a/packages/playwright-core/src/server/instrumentation.ts+++ b/packages/playwright-core/src/server/instrumentation.ts@@ -37,8 +37,6 @@ export type Attribution = {import type { CallMetadata } from '@protocol/callMetadata';export type { CallMetadata } from '@protocol/callMetadata';-export const kTestSdkObjects = new WeakSet<SdkObject>();-export class SdkObject extends EventEmitter {guid: string;attribution: Attribution;@@ -50,8 +48,6 @@ export class SdkObject extends EventEmitter {this.setMaxListeners(0);this.attribution = { ...parent.attribution };this.instrumentation = parent.instrumentation;- if (process.env._PW_INTERNAL_COUNT_SDK_OBJECTS)- kTestSdkObjects.add(this);}}