chore: fix api.json serializer for language ports (#32260)
Fixes https://github.com/microsoft/playwright/issues/32241
This commit is contained in:
parent
e3480d1886
commit
666a8f22cf
|
|
@ -77,7 +77,7 @@ function serializeMember(member) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function serializeProperty(arg) {
|
function serializeProperty(arg) {
|
||||||
const result = { ...arg };
|
const result = { ...arg, parent: undefined };
|
||||||
sanitize(result);
|
sanitize(result);
|
||||||
if (arg.type)
|
if (arg.type)
|
||||||
result.type = serializeType(arg.type, arg.name === 'options');
|
result.type = serializeType(arg.type, arg.name === 'options');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue