fix: set prototype names on gin::Constructible
classes (#39006)
* fix: set prototype names on gin::Constructible classes * test: add tests
This commit is contained in:
parent
56b5c00312
commit
c7bdd907d7
23 changed files with 71 additions and 15 deletions
|
@ -4161,7 +4161,7 @@ void WebContents::FillObjectTemplate(v8::Isolate* isolate,
|
|||
v8::Local<v8::ObjectTemplate> templ) {
|
||||
gin::InvokerOptions options;
|
||||
options.holder_is_first_argument = true;
|
||||
options.holder_type = "WebContents";
|
||||
options.holder_type = GetClassName();
|
||||
templ->Set(
|
||||
gin::StringToSymbol(isolate, "isDestroyed"),
|
||||
gin::CreateFunctionTemplate(
|
||||
|
@ -4301,7 +4301,7 @@ void WebContents::FillObjectTemplate(v8::Isolate* isolate,
|
|||
}
|
||||
|
||||
const char* WebContents::GetTypeName() {
|
||||
return "WebContents";
|
||||
return GetClassName();
|
||||
}
|
||||
|
||||
ElectronBrowserContext* WebContents::GetBrowserContext() const {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue