GetConstructor now returns FunctionTemplate
This commit is contained in:
parent
6e0cde5b24
commit
8f62e79243
4 changed files with 5 additions and 4 deletions
|
@ -871,7 +871,8 @@ void Initialize(v8::Local<v8::Object> exports, v8::Local<v8::Value> unused,
|
|||
v8::Isolate* isolate = context->GetIsolate();
|
||||
Window::SetConstructor(isolate, "BrowserWindow", base::Bind(&Window::New));
|
||||
|
||||
mate::Dictionary browser_window(isolate, Window::GetConstructor(isolate));
|
||||
mate::Dictionary browser_window(
|
||||
isolate, Window::GetConstructor(isolate)->GetFunction());
|
||||
browser_window.SetMethod("fromId",
|
||||
&mate::TrackableObject<Window>::FromWeakMapID);
|
||||
browser_window.SetMethod("getAllWindows",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue