Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs: support method overrides (#5405)

Yury Semikhatskyd39d2eaf4ced
diff --git a/utils/doclint/api_parser.js b/utils/doclint/api_parser.js
index 00d4556dbe..6015092258 100644
--- a/utils/doclint/api_parser.js
+++ b/utils/doclint/api_parser.js
@@ -104,7 +104,7 @@ class ApiParser {
}
const clazz = this.classes.get(match[2]);
const existingMember = clazz.membersArray.find(m => m.name === name && m.kind === member.kind);
- if (existingMember) {
+ if (existingMember && !existingMember.langs.only) {
for (const lang of member.langs.only) {
existingMember.langs.types = existingMember.langs.types || {};
existingMember.langs.types[lang] = returnType;