refactor: ginify WebContents (#24651)
This commit is contained in:
parent
e7fc19c98e
commit
b5cd9ce0b3
8 changed files with 156 additions and 67 deletions
|
@ -157,7 +157,7 @@ v8::Local<v8::Function> CreateConstructor(
|
|||
CHECK(!called) << "CreateConstructor can only be called for one type once";
|
||||
called = true;
|
||||
#endif
|
||||
v8::Local<v8::FunctionTemplate> templ = CreateFunctionTemplate(
|
||||
v8::Local<v8::FunctionTemplate> templ = gin_helper::CreateFunctionTemplate(
|
||||
isolate, base::BindRepeating(&internal::InvokeNew<Sig>, func));
|
||||
templ->InstanceTemplate()->SetInternalFieldCount(1);
|
||||
T::BuildPrototype(isolate, templ);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue