GetConstructor now returns FunctionTemplate
This commit is contained in:
parent
6e0cde5b24
commit
8f62e79243
4 changed files with 5 additions and 4 deletions
|
@ -230,7 +230,7 @@ void Initialize(v8::Local<v8::Object> exports, v8::Local<v8::Value> unused,
|
|||
Tray::SetConstructor(isolate, "Tray", base::Bind(&Tray::New));
|
||||
|
||||
mate::Dictionary dict(isolate, exports);
|
||||
dict.Set("Tray", Tray::GetConstructor(isolate));
|
||||
dict.Set("Tray", Tray::GetConstructor(isolate)->GetFunction());
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue