Pass FunctionTemplate in BuildPrototype
This commit is contained in:
parent
895b8b47ee
commit
cb19efe49c
47 changed files with 71 additions and 71 deletions
|
@ -248,8 +248,8 @@ mate::Handle<Cookies> Cookies::Create(
|
|||
|
||||
// static
|
||||
void Cookies::BuildPrototype(v8::Isolate* isolate,
|
||||
v8::Local<v8::ObjectTemplate> prototype) {
|
||||
mate::ObjectTemplateBuilder(isolate, prototype)
|
||||
v8::Local<v8::FunctionTemplate> prototype) {
|
||||
mate::ObjectTemplateBuilder(isolate, prototype->PrototypeTemplate())
|
||||
.SetMethod("get", &Cookies::Get)
|
||||
.SetMethod("remove", &Cookies::Remove)
|
||||
.SetMethod("set", &Cookies::Set);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue