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

chore: add missing gin::Wrappable GetTypeName overrides

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
trop[bot] 2024-03-06 15:58:45 +01:00 committed by GitHub
parent 58ee15905b
commit e7300ad4c8
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;