chore: add missing gin::Wrappable GetTypeName overrides (#41512)

chore: add missing gin::Wrappable GetTypeName overrides
This commit is contained in:
Shelley Vohr 2024-03-06 12:45:28 +01:00 committed by GitHub
parent a7d664e3a3
commit 62331f5ac1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 23 additions and 5 deletions

View file

@ -182,6 +182,8 @@ class JSChunkedDataPipeGetter : public gin::Wrappable<JSChunkedDataPipeGetter>,
.SetMethod("done", &JSChunkedDataPipeGetter::Done);
}
const char* GetTypeName() override { return "JSChunkedDataPipeGetter"; }
static gin::WrapperInfo kWrapperInfo;
~JSChunkedDataPipeGetter() override = default;

View file

@ -271,6 +271,8 @@ class ChunkedDataPipeReadableStream
.SetMethod("read", &ChunkedDataPipeReadableStream::Read);
}
const char* GetTypeName() override { return "ChunkedDataPipeReadableStream"; }
static gin::WrapperInfo kWrapperInfo;
private:

View file

@ -28,4 +28,8 @@ Event::~Event() = default;
gin::WrapperInfo Event::kWrapperInfo = {gin::kEmbedderNativeGin};
const char* Event::GetTypeName() {
return GetClassName();
}
} // namespace gin_helper::internal

View file

@ -31,6 +31,7 @@ class Event : public gin::Wrappable<Event>,
// gin::Wrappable
static gin::WrapperInfo kWrapperInfo;
const char* GetTypeName() override;
~Event() override;