chore: fix api.json serializer for language ports (#32260)

Fixes https://github.com/microsoft/playwright/issues/32241
This commit is contained in:
Max Schmitt 2024-08-22 10:15:47 +02:00 committed by GitHub
parent e3480d1886
commit 666a8f22cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -77,7 +77,7 @@ function serializeMember(member) {
}
function serializeProperty(arg) {
const result = { ...arg };
const result = { ...arg, parent: undefined };
sanitize(result);
if (arg.type)
result.type = serializeType(arg.type, arg.name === 'options');