chore(dotnet): make JSHandle inherit from IAsyncDisposable (#10905)

This commit is contained in:
Max Schmitt 2021-12-14 12:40:56 -08:00 committed by GitHub
parent 6552556608
commit b310c6bd6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,6 +136,9 @@ function renderClass(clazz) {
const body = [];
for (const member of clazz.membersArray) {
// Classes inherit it from IAsyncDisposable
if (member.name === 'dispose')
continue
if (member.alias.startsWith('RunAnd'))
renderMember(member, clazz, { trimRunAndPrefix: true }, body);
renderMember(member, clazz, {}, body);